[pitivi/gtktimeline] elements: Do not wrongly request TimelineElements height



commit 8214be924f3a37e51ad3c5d5cb52b9db514d159a
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue May 5 21:37:48 2015 +0200

    elements: Do not wrongly request TimelineElements height
    
    We just force it with height_request now
    
    Fixes http://phabricator.freedesktop.org/T54

 pitivi/timeline/elements.py |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index ae750aa..f1da320 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -437,9 +437,6 @@ class VideoSource(TimelineElement):
     def _getBackground(self):
         return VideoBackground()
 
-    def do_get_preferred_height(self):
-        return ui.LAYER_HEIGHT / 2, ui.LAYER_HEIGHT
-
 
 class VideoUriSource(VideoSource):
 
@@ -476,9 +473,6 @@ class AudioUriSource(TimelineElement):
         super(AudioUriSource, self).__init__(element, timeline)
         self.get_style_context().add_class("AudioUriSource")
 
-    def do_get_preferred_height(self):
-        return ui.LAYER_HEIGHT / 2, ui.LAYER_HEIGHT
-
     def _getPreviewer(self):
         previewer = previewers.AudioPreviewer(self._bElement)
         previewer.get_style_context().add_class("AudioUriSource")


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