[pitivi] timeline: Update elements position in the size_allocate GtkWidget vmethod
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Update elements position in the size_allocate GtkWidget vmethod
- Date: Thu, 11 Jun 2015 09:22:26 +0000 (UTC)
commit b5c8a3859e2af957d0f53b1dbb6969e3c6fbb81d
Author: Thibault Saunier <tsaunier gnome org>
Date: Mon Jun 8 10:06:30 2015 +0200
timeline: Update elements position in the size_allocate GtkWidget vmethod
Instead of in the draw method where it does not belong.
pitivi/timeline/elements.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 35cd6a2..e1fccce 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -639,8 +639,11 @@ class Clip(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
self.timeline.sendFakeEvent(event, event_widget)
- def do_draw(self, cr):
+ def do_size_allocate(self, request):
self.updatePosition()
+ Gtk.EventBox.do_size_allocate(self, request)
+
+ def do_draw(self, cr):
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]