pitivi r1406 - trunk/pitivi/ui



Author: edwardrv
Date: Fri Nov 28 17:35:49 2008
New Revision: 1406
URL: http://svn.gnome.org/viewvc/pitivi?rev=1406&view=rev

Log:
removed calls to view methods from default implementation to make controller more reusable

Modified:
   trunk/pitivi/ui/controller.py

Modified: trunk/pitivi/ui/controller.py
==============================================================================
--- trunk/pitivi/ui/controller.py	(original)
+++ trunk/pitivi/ui/controller.py	Fri Nov 28 17:35:49 2008
@@ -93,21 +93,17 @@
 ## internal callbacks
 
     def _drag_start(self, item, target, event):
-        self._view.activate()
         self.drag_start()
 
     def _drag_end(self, item, target, event):
         self.drag_end()
         if self._ptr_within:
-            self._view.focus()
             point = self.from_item_event(item, event)
             if self._last_click and (event.time - self._last_click < 400):
                 self.double_click(point)
             else:
                 self.click(point)
             self._last_click = event.time
-        else:
-            self._view.normal()
 
 ## protected interface for subclasses
 
@@ -130,9 +126,7 @@
         return pos
 
     def enter(self, item, target):
-        if not self._dragging:
-            self._view.focus()
+        pass
 
     def leave(self, item, target):
-        if not self._dragging:
-            self._view.normal()
+        pass



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