[pitivi] viewer: set_size_request() takes integers.



commit 5f8c3d4d0dc74da65174f7abc61bd0dced65a2bd
Author: Edward Hervey <bilboed bilboed com>
Date:   Sat Sep 5 16:09:02 2009 +0200

    viewer: set_size_request() takes integers.
    
    Removes a stupid little warning

 pitivi/ui/viewer.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index c4f025b..62f642a 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -272,7 +272,7 @@ class PitiviViewer(gtk.VBox, Loggable):
             bbox.show_all()
             width, height = bbox.size_request()
             width += 110
-            height = width / self.aframe.props.ratio
+            height = int(width / self.aframe.props.ratio)
             self.aframe.set_size_request(width , height)
 
     def showControls(self):



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