The widget receiving the key-release-event signal is no longer a GtkWindow, so we need to look elsewhere to determine which widget is focused. --- pyanaconda/ui/gui/spokes/custom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index 58c4f35..45ab6de 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -1429,7 +1429,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): ### SIGNAL HANDLERS ###
- def on_key_pressed(self, window, event, *args): + def on_key_pressed(self, widget, event, *args): if not event or event and event.type != Gdk.EventType.KEY_RELEASE: return
@@ -1437,12 +1437,12 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): # But we only want delete to work if you have focused a MountpointSelector, # and not just any random widget. For those, it's likely the user wants # to delete a character. - if isinstance(window.get_focus(), MountpointSelector): + if isinstance(self.main_window.get_focus(), MountpointSelector): self._removeButton.emit("clicked") elif event.keyval == Gdk.KEY_plus: # And we only want '+' to work if you don't have a text entry focused, since # the user might be entering some free-form text that can include a plus. - if not isinstance(window.get_focus(), Gtk.Entry): + if not isinstance(self.main_window.get_focus(), Gtk.Entry): self._addButton.emit("clicked")
def _do_check(self):
On Wed, 2014-07-16 at 11:41 -0400, David Shea wrote:
On 07/16/2014 11:39 AM, David Shea wrote:
The widget receiving the key-release-event signal is no longer a GtkWindow, so we need to look elsewhere to determine which widget is focused.
I guess I should have looked at the subject line before sending. Fixed locally.
No recursive bugs? Disappointing... ACK.
anaconda-patches@lists.fedorahosted.org