[pybliographer/wip/gtk3: 20/42] utils: Port set_cursor to Gtk3
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pybliographer/wip/gtk3: 20/42] utils: Port set_cursor to Gtk3
- Date: Sat, 7 Oct 2017 01:19:21 +0000 (UTC)
commit 1a039a4be988b714534a377bd8267ce7c7e52866
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 9bef032..5193d7c 100644
--- a/Pyblio/GnomeUI/Utils.py
+++ b/Pyblio/GnomeUI/Utils.py
@@ -139,16 +139,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]