[gedit] Use Gdk.ModifierType
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Use Gdk.ModifierType
- Date: Mon, 28 Feb 2011 22:47:38 +0000 (UTC)
commit 2c644c985159dce5a40a99b1c0c825cc0ecb5a54
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Feb 28 23:47:26 2011 +0100
Use Gdk.ModifierType
plugins/quickopen/quickopen/popup.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/quickopen/quickopen/popup.py b/plugins/quickopen/quickopen/popup.py
index 9b0f707..49f07fe 100644
--- a/plugins/quickopen/quickopen/popup.py
+++ b/plugins/quickopen/quickopen/popup.py
@@ -488,7 +488,7 @@ class Popup(Gtk.Dialog):
return self._move_selection(move_mapping[event.keyval], event.state & Gdk.ModifierType.CONTROL_MASK, event.state & Gdk.ModifierType.SHIFT_MASK)
elif event.keyval in [Gdk.KEY_Return, Gdk.KEY_KP_Enter, Gdk.KEY_Tab, Gdk.KEY_ISO_Left_Tab]:
return self._activate()
- elif event.keyval == Gdk.KEY_space and event.state & Gtk.gdk.CONTROL_MASK:
+ elif event.keyval == Gdk.KEY_space and event.state & Gdk.ModifierType.CONTROL_MASK:
self.toggle_cursor()
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]