[pitivi] layer: Remove calls which have no effect



commit bf1f5ae2f3d3cf9097cf4aeb244695c2f5be1831
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Aug 30 13:59:44 2016 +0200

    layer: Remove calls which have no effect
    
    The width of the LayerLayout is assured by setting self.props.hexpand to
    True.
    
    Differential Revision: https://phabricator.freedesktop.org/D1289

 pitivi/timeline/layer.py |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/timeline/layer.py b/pitivi/timeline/layer.py
index 74b9c3f..27bcd73 100644
--- a/pitivi/timeline/layer.py
+++ b/pitivi/timeline/layer.py
@@ -328,17 +328,11 @@ class LayerLayout(Gtk.Layout, Loggable):
         if self._changed:
             self._children.sort(key=lambda clip: clip.z_order)
             for child in self._children:
-
                 if isinstance(child, elements.TransitionClip):
                     window = child.get_window()
                     window.raise_()
             self._changed = False
 
-        self.props.width = max(self.timeline.layout.get_allocation().width,
-                               Zoomable.nsToPixel(self.timeline.ges_timeline.props.duration))
-        self.props.width_request = max(self.timeline.layout.get_allocation().width,
-                                       Zoomable.nsToPixel(self.timeline.ges_timeline.props.duration))
-
         for child in self._children:
             self.propagate_draw(child, cr)
 


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