pitivi r1410 - trunk/pitivi/ui



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

Log:
couple of minor tweaks

Removed:
   trunk/pitivi/ui/selection.py
Modified:
   trunk/pitivi/ui/point.py
   trunk/pitivi/ui/timelinecanvas.py

Modified: trunk/pitivi/ui/point.py
==============================================================================
--- trunk/pitivi/ui/point.py	(original)
+++ trunk/pitivi/ui/point.py	Fri Nov 28 17:36:06 2008
@@ -31,6 +31,9 @@
         """Returns the 2-dvector difference p1 - p2"""
         return Point(*(a - b for a, b in izip(p1, p2)))
 
+    def __abs__(self):
+        return Point(*(abs(a) for a in self))
+
     @classmethod
     def from_item_bounds(self, item):
         bounds = item.get_bounds()

Modified: trunk/pitivi/ui/timelinecanvas.py
==============================================================================
--- trunk/pitivi/ui/timelinecanvas.py	(original)
+++ trunk/pitivi/ui/timelinecanvas.py	Fri Nov 28 17:36:06 2008
@@ -71,6 +71,8 @@
 ## implements selection marquee
 
     __selecting = False
+    __mousedown = None
+    __marquee = None
 
     def __normalize(self, p1, p2):
         w, h = p2 - p1



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