[pitivi] elements: Don't use path_round_rectangle.



commit c4c11dedd3cc966f8fa75fad080aff3abf1cf3f6
Author: Mathieu Duponchelle <mathieu duponchelle opencreed com>
Date:   Wed Apr 2 18:09:14 2014 +0200

    elements: Don't use path_round_rectangle.
    
    We didn't actually make rounded rectangles anyway.
    
    This class will need to go altogether at some point.

 pitivi/timeline/elements.py |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 955cba8..189ef0a 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -86,12 +86,10 @@ class RoundedRectangle(Clutter.Actor):
         if self._border_color:
             # draw the rectangle for the border which is the same size as the
             # object
-            Cogl.path_round_rectangle(0, 0, self.props.width, self.props.height,
-                                      self._arc, self._step)
-            Cogl.path_round_rectangle(self._border_width, self._border_width,
-                                      self.props.width - self._border_width,
-                                      self.props.height - self._border_width,
-                                      self._arc, self._step)
+            Cogl.path_rectangle(0, 0, self.props.width, self.props.height)
+            Cogl.path_rectangle(self._border_width, self._border_width,
+                                self.props.width - self._border_width,
+                                self.props.height - self._border_width)
             Cogl.path_set_fill_rule(Cogl.PathFillRule.EVEN_ODD)
             Cogl.path_close()
 
@@ -102,10 +100,9 @@ class RoundedRectangle(Clutter.Actor):
         if self._color:
             # draw the content with is the same size minus the width of the border
             # finish the clip
-            Cogl.path_round_rectangle(self._border_width, self._border_width,
-                                      self.props.width - self._border_width,
-                                      self.props.height - self._border_width,
-                                      self._arc, self._step)
+            Cogl.path_rectangle(self._border_width, self._border_width,
+                                self.props.width - self._border_width,
+                                self.props.height - self._border_width)
             Cogl.path_close()
 
             # set the color of the filled area


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