[pitivi] viewer.py : size_request returns a Requisition object, and not a tuple



commit 9a3cf0cb3c6b2bcc9f2ac16d300531ea6e3cf589
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date:   Tue Sep 4 20:34:30 2012 +0200

    viewer.py : size_request returns a Requisition object, and not a tuple

 pitivi/viewer.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 759d99f..be42b10 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -253,7 +253,9 @@ class PitiviViewer(Gtk.VBox, Loggable):
             # show the controls and force the aspect frame to have at least the same
             # width (+110, which is a magic number to minimize dead padding).
             bbox.show_all()
-            width, height = bbox.size_request()
+            req = bbox.size_request()
+            width = req.width
+            height = req.height
             width += 110
             height = int(width / self.aframe.props.ratio)
             self.aframe.set_size_request(width, height)



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