[pybliographer] document: Make gtk.gdk calls consistent within the module



commit 909415e5a1a724174396d7c4dd8b07c7464bc253
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Sat Mar 24 21:33:33 2018 -0300

    document: Make gtk.gdk calls consistent within the module

 Pyblio/GnomeUI/Document.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Document.py b/Pyblio/GnomeUI/Document.py
index fbdee39..5ed0992 100644
--- a/Pyblio/GnomeUI/Document.py
+++ b/Pyblio/GnomeUI/Document.py
@@ -28,8 +28,6 @@ import gobject
 import gtk
 import gtk.glade
 
-from gtk import gdk
-
 from Pyblio.GnomeUI import Editor, Entry, FileSelector, Format
 from Pyblio.GnomeUI import Index, OpenURL, Search, Utils
 from Pyblio.GnomeUI.Sort import SortDialog
@@ -208,7 +206,7 @@ class Document (Connector.Publisher):
 
         self.w.add_accel_group (self.uim.get_accel_group ())
 
-        self.w.add_events (gdk.KEY_PRESS_MASK)
+        self.w.add_events (gtk.gdk.KEY_PRESS_MASK)
         
         self.w_save_btn = self.xml.get_widget ('_w_save_btn')
         self.w_save_mnu = self.xml.get_widget ('_w_save_mnu')


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