[pitivi] curve.py: set cursor to hand shape when hovering over interpolation curve



commit f214992b5e1201f6afcbdb6362fc43c0328ca669
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Mon Aug 3 15:24:21 2009 -0700

    curve.py: set cursor to hand shape when hovering over interpolation curve
    fixes bug 589812

 pitivi/ui/curve.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/curve.py b/pitivi/ui/curve.py
index bbc8aad..c85e5ef 100644
--- a/pitivi/ui/curve.py
+++ b/pitivi/ui/curve.py
@@ -24,6 +24,7 @@ Custom canvas item for track object keyframe curves."""
 
 import goocanvas
 import gobject
+import gtk
 
 from pitivi.receiver import receiver, handler
 from pitivi.ui.zoominterface import Zoomable
@@ -46,6 +47,7 @@ KW_WIDTH2 = KW_WIDTH / 2
 KW_HEIGHT2 = KW_HEIGHT / 2
 
 CURVE_STROKE_WIDTH = 2.0
+HAND = gtk.gdk.Cursor(gtk.gdk.HAND2)
 
 class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
 
@@ -53,6 +55,8 @@ class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
 
     class Controller(Controller):
 
+        _cursor = HAND
+
         def drag_start(self, item, target, event):
             self._view.app.action_log.begin("volume change")
             initial = self.from_item_event(item, event)



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