From b8a18b02b5a69c3156a8f8980cab4e570b676aa8 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Sun, 23 Jun 2013 14:16:22 +0000 Subject: [PATCH] 6740: root cursor corruption Use get_window() not get_root_window() to set the cursor. svn: r22571 --- gramps/plugins/view/pedigreeview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/view/pedigreeview.py b/gramps/plugins/view/pedigreeview.py index 363f93f94..9a4f75f7b 100644 --- a/gramps/plugins/view/pedigreeview.py +++ b/gramps/plugins/view/pedigreeview.py @@ -1333,7 +1333,7 @@ class PedigreeView(NavigationView): or call option menu. """ if event.button == 1 and event.type == Gdk.EventType.BUTTON_PRESS: - widget.get_root_window().set_cursor(Gdk.Cursor.new(Gdk.CursorType.FLEUR)) + widget.get_window().set_cursor(Gdk.Cursor.new(Gdk.CursorType.FLEUR)) self._last_x = event.x self._last_y = event.y self._in_move = True @@ -1347,7 +1347,7 @@ class PedigreeView(NavigationView): """Exit from scroll mode when button release.""" if event.button == 1 and event.type == Gdk.EventType.BUTTON_RELEASE: self.cb_bg_motion_notify_event(widget, event) - widget.get_root_window().set_cursor(None) + widget.get_window().set_cursor(None) self._in_move = False return True return False