diff options
author | Manuel 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) |
commit | 0d83307a0996beb29d1df935ec076896b4e73e77 (patch) | |
tree | 876027e56d4d6828efa363ae052d79afb3bf17d3 | |
parent | ab682c7513ded8d27e01f2308d9be822a3449df9 (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-x | clock.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |