[pitivi] Prevent the timeline's Zoom Fit button from expanding



commit b5155c89037f7a5b28f9582d734532977a6025e8
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Sat Jul 21 16:06:17 2012 -0400

    Prevent the timeline's Zoom Fit button from expanding

 pitivi/timeline/timeline.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index b9b3f78..f1529dd 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -990,11 +990,11 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         zoom_fit_icon = gtk.Image()
         zoom_fit_icon.set_from_stock(gtk.STOCK_ZOOM_FIT, gtk.ICON_SIZE_BUTTON)
         zoom_fit_btn_hbox = gtk.HBox()
-        zoom_fit_btn_hbox.pack_start(zoom_fit_icon)
-        zoom_fit_btn_hbox.pack_start(gtk.Label(_("Zoom")))
+        zoom_fit_btn_hbox.pack_start(zoom_fit_icon, expand=False)
+        zoom_fit_btn_hbox.pack_start(gtk.Label(_("Zoom")), expand=False)
         zoom_fit_btn.add(zoom_fit_btn_hbox)
         zoom_fit_btn.connect("clicked", self._zoomFitCb)
-        zoom_controls_hbox.pack_start(zoom_fit_btn)
+        zoom_controls_hbox.pack_start(zoom_fit_btn, expand=False)
         # zooming slider
         self._zoomAdjustment = gtk.Adjustment()
         self._zoomAdjustment.set_value(Zoomable.getCurrentZoomLevel())
@@ -1410,7 +1410,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         # TrackObject-s creation is short enough so we are all good when the
         # first TrackObject is added to the TimelineObject
         if tlobj.is_image():
-           tlobj.set_duration(long(self._settings.imageClipLength) * gst.SECOND / 1000)
+            tlobj.set_duration(long(self._settings.imageClipLength) * gst.SECOND / 1000)
         self._temp_objects.insert(0, tlobj)
         tlobj.disconnect(self._creating_tckobjs_sigid[tlobj])
         del self._creating_tckobjs_sigid[tlobj]



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