[pitivi] ui.controller: reset the cursor to ARROW.



commit 538fd12615e854883e48b295da62dbc51082f124
Author: Alessandro Decina <alessandro d gmail com>
Date:   Thu Apr 30 16:09:01 2009 +0200

    ui.controller: reset the cursor to ARROW.
    
    Fixes #580191.
---
 pitivi/ui/controller.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pitivi/ui/controller.py b/pitivi/ui/controller.py
index 9a8dee2..4590373 100644
--- a/pitivi/ui/controller.py
+++ b/pitivi/ui/controller.py
@@ -19,6 +19,7 @@
 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
+import gtk.gdk
 from pitivi.receiver import receiver, handler
 from pitivi.ui.point import Point
 
@@ -29,6 +30,8 @@ from pitivi.ui.point import Point
 # that explictly combines the functionality of both when custom behavior is
 # desired.
 
+ARROW = gtk.gdk.Cursor(gtk.gdk.ARROW)
+
 class Controller(object):
 
     """A controller which implements drag-and-drop bahavior on connected view
@@ -86,6 +89,7 @@ class Controller(object):
     def leave_notify_event(self, item, target, event):
         self._last_event = event
         self._ptr_within = False
+        event.window.set_cursor(ARROW)
         if not self._dragging:
             self.leave(item, target)
         return True



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