Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2013-02-15 04:34:20 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2013-02-27 23:31:10 (GMT)
commit0d83307a0996beb29d1df935ec076896b4e73e77 (patch)
tree876027e56d4d6828efa363ae052d79afb3bf17d3
parentab682c7513ded8d27e01f2308d9be822a3449df9 (diff)
Change mouse cursor to a hand when grabbing the hands of the clock - SL #1959
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
-rwxr-xr-xclock.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/clock.py b/clock.py
index 5bbb90a..4bf0ab6 100755
--- a/clock.py
+++ b/clock.py
@@ -962,11 +962,18 @@ font_desc="Sans Bold 40">%d</span></markup>') % (i + 1)
self._motion_cb)
self._release_id = self.connect("button-release-event",
self._release_cb)
+
+ # Put hand cursor
+ self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND2))
+
else:
self.disconnect(self._press_id)
self.disconnect(self._motion_id)
self.disconnect(self._release_id)
+ # Put original cursor again
+ self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.LEFT_PTR))
+
# Update again the clock every seconds.
gobject.timeout_add(1000, self._update_cb)