From 25860314ed6e52fc97a2f279858b596d72d133e6 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 17 May 2006 18:12:16 +0000 Subject: [PATCH] 2006-05-17 Alex Roitman * src/GrampsWidgets.py (LinkLabel.__init__): Set cursor to HAND1. svn: r6694 --- ChangeLog | 3 +++ src/GrampsWidgets.py | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d13dfa34f..8fe5d7022 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-05-17 Alex Roitman + * src/GrampsWidgets.py (LinkLabel.__init__): Set cursor to HAND1. + 2006-05-17 Stefan Bjork * po/sv.po: Imported from CVS and merged with gramps.pot. diff --git a/src/GrampsWidgets.py b/src/GrampsWidgets.py index 6eefd871d..2eccee9a2 100644 --- a/src/GrampsWidgets.py +++ b/src/GrampsWidgets.py @@ -41,6 +41,10 @@ import const _lock_path = os.path.join(const.image_dir, 'stock_lock.png') _lock_open_path = os.path.join(const.image_dir, 'stock_lock-open.png') +hand_cursor = gtk.gdk.Cursor(gtk.gdk.HAND1) +def realize_cb(widget): + widget.window.set_cursor(hand_cursor) + class LinkLabel(gtk.EventBox): def __init__(self, label, func, handle): @@ -56,11 +60,11 @@ class LinkLabel(gtk.EventBox): self.label.set_alignment(0, 0.5) self.add(self.label) - self.set_visible_window(False) self.connect('button-press-event', func, handle) self.connect('enter-notify-event', self.enter_text, handle) self.connect('leave-notify-event', self.leave_text, handle) + self.connect('realize', realize_cb) def enter_text(self, obj, event, handle): text = '%s' % self.orig_text