[pitivi] Compact code in timeline/timeline.py and timeline/track.py



commit b52b4bb7dadc218363f0d2568ac877c7d603d058
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Sat Jun 2 20:08:44 2012 -0400

    Compact code in timeline/timeline.py and timeline/track.py

 pitivi/timeline/timeline.py |    6 ++----
 pitivi/timeline/track.py    |    9 +++------
 2 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 21d0659..0490a05 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -270,8 +270,7 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
         @type x1: An C{int}
         @param y1: The vertical coordinate of the up left corner of the area
         @type y1: An C{int}
-        @param x2: The horizontal coordinate of the down right corner of the
-                   area
+        @param x2: The horizontal coordinate of the down right area corner
         @type x2: An C{int}
         @param x2: The vertical coordinate of the down right corner of the area
         @type x2: An C{int}
@@ -345,8 +344,7 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
         return True
 
     def _objectsUnderMarquee(self):
-        items = self.get_items_in_area(self._marquee.get_bounds(), True, True,
-            True)
+        items = self.get_items_in_area(self._marquee.get_bounds(), True, True, True)
         if items:
             return set((item.element for item in items if isinstance(item,
                 TrackObject) and item.bg in items))
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index 51e87aa..30b0a21 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -507,11 +507,9 @@ class TrackObject(View, goocanvas.Group, Zoomable, Loggable):
         pattern = unpack_cairo_gradient(color)
         self.bg.props.fill_pattern = pattern
         self.namebg.props.fill_pattern = pattern
-        self._selec_indic.props.fill_pattern = unpack_cairo_pattern(
-            self.settings.selectedColor)
+        self._selec_indic.props.fill_pattern = unpack_cairo_pattern(self.settings.selectedColor)
         self.name.props.font = self.settings.clipFontDesc
-        self.name.props.fill_pattern = unpack_cairo_pattern(
-            self.settings.clipFontColor)
+        self.name.props.fill_pattern = unpack_cairo_pattern(self.settings.clipFontColor)
         twidth, theight = text_size(self.name)
         self.namewidth = twidth
         self.nameheight = theight
@@ -590,8 +588,7 @@ class TrackObject(View, goocanvas.Group, Zoomable, Loggable):
         if width < min_width:
             width = min_width
         w = width - handles_width
-        self.name.props.clip_path = "M%g,%g h%g v%g h-%g z" % (
-            0, 0, w, self.height, w)
+        self.name.props.clip_path = "M%g,%g h%g v%g h-%g z" % (0, 0, w, self.height, w)
         self.bg.props.width = width
 
         self._selec_indic.props.width = width



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