From 2e3724f2f39d85f01e410696a88a8e9e16b6d376 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Sat, 4 Jan 2014 21:18:18 +0200 Subject: [PATCH] 7336: Gramps changes root cursor to hand Following the suggestion from QuLogic, change get_root_window to get_window for the set_cursor scope, like in my #6740 fix. --- gramps/gui/widgets/expandcollapsearrow.py | 2 +- gramps/gui/widgets/labels.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/widgets/expandcollapsearrow.py b/gramps/gui/widgets/expandcollapsearrow.py index 5d2d3e98b..b59862d4c 100644 --- a/gramps/gui/widgets/expandcollapsearrow.py +++ b/gramps/gui/widgets/expandcollapsearrow.py @@ -57,7 +57,7 @@ if has_display(): # #------------------------------------------------------------------------- def realize_cb(widget): - widget.get_root_window().set_cursor(HAND_CURSOR) + widget.get_window().set_cursor(HAND_CURSOR) #------------------------------------------------------------------------- # diff --git a/gramps/gui/widgets/labels.py b/gramps/gui/widgets/labels.py index b6e0e0328..8ce5249c7 100644 --- a/gramps/gui/widgets/labels.py +++ b/gramps/gui/widgets/labels.py @@ -67,7 +67,7 @@ if has_display(): # #------------------------------------------------------------------------- def realize_cb(widget): - widget.get_root_window().set_cursor(HAND_CURSOR) + widget.get_window().set_cursor(HAND_CURSOR) #------------------------------------------------------------------------- #