summaryrefslogtreecommitdiffstats
path: root/pyanaconda
diff options
context:
space:
mode:
authorVratislav Podzimek <vpodzime@redhat.com>2013-02-06 11:43:44 +0100
committerVratislav Podzimek <vpodzime@redhat.com>2013-02-07 11:06:47 +0100
commitcc473bc334a375729bbd5399dfd5125fbfa5e985 (patch)
treebf166b5deb8886979ea9eef23399694640c7ab64 /pyanaconda
parent6b919e5046fe307b6d93dbb868f21f4bb86d8941 (diff)
downloadanaconda-cc473bc334a375729bbd5399dfd5125fbfa5e985.tar.gz
anaconda-cc473bc334a375729bbd5399dfd5125fbfa5e985.tar.xz
anaconda-cc473bc334a375729bbd5399dfd5125fbfa5e985.zip
Overrides for the Gdk have _2BUTTON_PRESS defined
Gdk.EventType.2BUTTON_PRESS results in syntax error in Python. However it is not necessary to use getattr() because there is Gtk.EventType._2BUTTON_PRESS defined in Gdk's overrides.
Diffstat (limited to 'pyanaconda')
-rw-r--r--pyanaconda/ui/gui/spokes/keyboard.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyanaconda/ui/gui/spokes/keyboard.py b/pyanaconda/ui/gui/spokes/keyboard.py
index 10ede4c60..082702ce7 100644
--- a/pyanaconda/ui/gui/spokes/keyboard.py
+++ b/pyanaconda/ui/gui/spokes/keyboard.py
@@ -152,8 +152,7 @@ class AddLayoutDialog(GUIObject):
self._entry.set_text("")
def on_layout_view_button_press(self, widget, event, *args):
- # BUG: Gdk.EventType.2BUTTON_PRESS results in syntax error
- if event.type == getattr(Gdk.EventType, "2BUTTON_PRESS") and \
+ if event.type == Gdk.EventType._2BUTTON_PRESS and \
self._confirmAddButton.get_sensitive():
# double-click should close the dialog if something is selected
# (i.e. the Add button is sensitive)