[billreminder: 11/17] Changed the timeline cursor.



commit 8e4f4748c4ca8352b7c532a2b1d6b8f08cccde8b
Author: Luiz Armesto <luiz armesto gmail com>
Date:   Wed Feb 23 20:25:10 2011 -0300

    Changed the timeline cursor.

 src/gui/widgets/timeline.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/widgets/timeline.py b/src/gui/widgets/timeline.py
index 94414a5..6a213c8 100644
--- a/src/gui/widgets/timeline.py
+++ b/src/gui/widgets/timeline.py
@@ -510,7 +510,7 @@ class Timeline(gtk.DrawingArea):
                   my > self._box_rect.y + self._box_rect.height:
                     self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND2))
                 else:
-                    self.window.set_cursor(None)
+                    self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND1))
             self.queue_draw_area(0, 0, self.allocation.width,
                                  self.allocation.height)
         if self._dragged:
@@ -550,12 +550,13 @@ class Timeline(gtk.DrawingArea):
               mx < self._box_rect.width + self._box_rect.x:
                 self._pressed = True
                 self._clicked_position = self._get_mouse_position()
+                self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.FLEUR))
         return False
 
     def do_motion_notify_event(self, event):
         mx, my = self.get_pointer()
         if self._pressed:
-            self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND1))
+            self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.FLEUR))
             pos_ = self._get_mouse_position()
             if pos_ != self._clicked_position or self._dragged:
                 self._dragged = True
@@ -591,11 +592,11 @@ class Timeline(gtk.DrawingArea):
                         )
                     else:
                         self.set_tooltip_text(None)
-                self.window.set_cursor(None)
+                self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND1))
             else:
                 self._mindex = -1
                 self.set_tooltip_text(None)
-                self.window.set_cursor(None)
+                self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.HAND1))
         #gobject.timeout_add(100, self.set_tooltip, str(mx))
         return False
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]