[pybliographer/gtk3: 20/25] utils: Port set_cursor to Gtk3



commit 4427a627286cbbf1ab1b688a7a07ae75b574861c
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Jul 23 23:32:58 2013 -0700

    utils: Port set_cursor to Gtk3

 Pyblio/GnomeUI/Utils.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Utils.py b/Pyblio/GnomeUI/Utils.py
index ed60b05..a5064f0 100644
--- a/Pyblio/GnomeUI/Utils.py
+++ b/Pyblio/GnomeUI/Utils.py
@@ -129,16 +129,14 @@ cursor = {
 
 
 def set_cursor (self, name):
+    window = self.get_toplevel().get_window()
 
-    # FIXME: Port to Gtk3
-    return
-    window = self.get_toplevel ().window
     if not window: return
     
-    window.set_cursor (cursor [name])
+    window.set_cursor (cursor[name])
         
     while Gtk.events_pending ():
-        Gtk.main_iteration (False)
+        Gtk.main_iteration ()
     return
 
 


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