[pitivi] Revert "timeline: Update elements position in the size_allocate GtkWidget vmethod"



commit a06899e4d636dfc912cf12da657bc2ad943ce35e
Author: Thibault Saunier <tsaunier gnome org>
Date:   Wed Jul 8 17:43:15 2015 +0200

    Revert "timeline: Update elements position in the size_allocate GtkWidget vmethod"
    
    The ->size_allocate vmethod is actually not called each time we draw
    but it is called only in certain circounstances which might lead to
    clip no being drawn in some conditions (especially after a project is
    loaded)
    
    This reverts commit b5c8a3859e2af957d0f53b1dbb6969e3c6fbb81d.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751693

 pitivi/timeline/elements.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index bed9222..f047e7a 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -666,11 +666,8 @@ class Clip(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
 
         self.timeline.sendFakeEvent(event, event_widget)
 
-    def do_size_allocate(self, request):
-        self.updatePosition()
-        Gtk.EventBox.do_size_allocate(self, request)
-
     def do_draw(self, cr):
+        self.updatePosition()
         Gtk.EventBox.do_draw(self, cr)
 
     def _clickedCb(self, unused_action, unused_actor):


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