[totem] opensubtitles: Fix the GDK key constants used



commit 905f245233688aa6b4e9efb5e355ef7554963c13
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Mar 30 16:08:20 2011 +0100

    opensubtitles: Fix the GDK key constants used
    
    Guess what? Another bug caused by GIR changes for GDK!

 src/plugins/opensubtitles/opensubtitles.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index a5b5c50..3b419ca 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -604,7 +604,7 @@ class OpenSubtitles(gobject.GObject, Peas.Activatable):
     # Callbacks
 
     def on_window__key_press_event(self, widget, event):
-        if event.keyval == Gdk.Escape:
+        if event.keyval == Gdk.KEY_Escape:
             self.dialog.destroy()
             self.dialog = None
             return True



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]