[pitivi] Set fill=False when expand=False



commit 99f7559ab7ac7106f4a0cf09e4b2d78cf75a9bf9
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Nov 21 03:18:14 2014 +0100

    Set fill=False when expand=False
    
    The fill parameter has no effect if expand is False.
    This should clarify a bit the code.

 pitivi/clipproperties.py      |    4 ++--
 pitivi/mainwindow.py          |    2 +-
 pitivi/mediafilespreviewer.py |    4 ++--
 pitivi/medialibrary.py        |    2 +-
 pitivi/project.py             |    2 +-
 pitivi/transitions.py         |    6 +++---
 pitivi/viewer.py              |   14 +++++++-------
 7 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index 4447592..96b48e7 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -78,12 +78,12 @@ class ClipProperties(Gtk.ScrolledWindow, Loggable):
         self.infobar_box = Gtk.Box()
         self.infobar_box.set_orientation(Gtk.Orientation.VERTICAL)
         self.infobar_box.show()
-        vbox.pack_start(self.infobar_box, False, True, 0)
+        vbox.pack_start(self.infobar_box, False, False, 0)
 
         # Transformation boxed DISABLED
         # self.transformation_expander = TransformationProperties(instance, instance.action_log)
         # self.transformation_expander.set_vexpand(False)
-        # vbox.pack_start(self.transformation_expander, False, True, 0)
+        # vbox.pack_start(self.transformation_expander, False, False, 0)
 
         effects_properties_manager = EffectsPropertiesManager(app)
         self.effect_expander = EffectProperties(
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 8e166a5..6d0eb16 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -848,7 +848,7 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
             "dialog-question", Gtk.IconSize.DIALOG)
         hbox = Gtk.Box(homogeneous=False, spacing=SPACING * 2)
         hbox.set_orientation(Gtk.Orientation.HORIZONTAL)
-        hbox.pack_start(image, False, True, 0)
+        hbox.pack_start(image, False, False, 0)
         hbox.pack_start(vbox, True, True, 0)
         hbox.set_border_width(SPACING)
 
diff --git a/pitivi/mediafilespreviewer.py b/pitivi/mediafilespreviewer.py
index e540e7b..d72c00f 100644
--- a/pitivi/mediafilespreviewer.py
+++ b/pitivi/mediafilespreviewer.py
@@ -147,8 +147,8 @@ class PreviewWidget(Gtk.Grid, Loggable):
         self.b_zoom_out = Gtk.ToolButton()
         self.b_zoom_out.set_icon_name("zoom-out")
         self.b_zoom_out.connect("clicked", self._on_zoom_clicked_cb, -1)
-        self.bbox.pack_start(self.b_zoom_in, False, True, 0)
-        self.bbox.pack_start(self.b_zoom_out, False, True, 0)
+        self.bbox.pack_start(self.b_zoom_in, False, False, 0)
+        self.bbox.pack_start(self.b_zoom_out, False, False, 0)
         self.bbox.show_all()
         self.attach(self.bbox, 0, 2, 1, 1)
 
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index c35527a..c530a3f 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -309,7 +309,7 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
         self.pack_start(self._import_warning_infobar, False, False, 0)
         self.pack_start(self.iconview_scrollwin, True, True, 0)
         self.pack_start(self.treeview_scrollwin, True, True, 0)
-        self.pack_start(self._progressbar, False, True, 0)
+        self.pack_start(self._progressbar, False, False, 0)
 
         self.thumbnailer = MediaLibraryWidget._getThumbnailer()
 
diff --git a/pitivi/project.py b/pitivi/project.py
index 41809cf..fa859cf 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -377,7 +377,7 @@ class ProjectManager(GObject.Object, Loggable):
             "dialog-question", Gtk.IconSize.DIALOG)
         hbox = Gtk.Box(homogeneous=False, spacing=SPACING * 2)
         hbox.set_orientation(Gtk.Orientation.HORIZONTAL)
-        hbox.pack_start(image, False, True, 0)
+        hbox.pack_start(image, False, False, 0)
         hbox.pack_start(vbox, True, True, 0)
         hbox.set_border_width(SPACING)
 
diff --git a/pitivi/transitions.py b/pitivi/transitions.py
index c07ba01..86e9bbc 100644
--- a/pitivi/transitions.py
+++ b/pitivi/transitions.py
@@ -142,10 +142,10 @@ class TransitionsListWidget(Gtk.Box, Loggable):
         # Speed-up startup by only checking available transitions on idle
         GLib.idle_add(self._loadAvailableTransitionsCb)
 
-        self.pack_start(self.infobar, False, True, 0)
-        self.pack_start(self.searchbar, False, True, 0)
+        self.pack_start(self.infobar, False, False, 0)
+        self.pack_start(self.searchbar, False, False, 0)
         self.pack_start(self.iconview_scrollwin, True, True, 0)
-        self.pack_start(self.props_widgets, False, True, 0)
+        self.pack_start(self.props_widgets, False, False, 0)
 
         # Create the filterModel for searching
         self.modelFilter = self.storemodel.filter_new()
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 23ce579..a285f29 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -214,7 +214,7 @@ class ViewerContainer(Gtk.Box, Loggable):
         bbox.set_orientation(Gtk.Orientation.HORIZONTAL)
         bbox.set_property("valign", Gtk.Align.CENTER)
         bbox.set_property("halign", Gtk.Align.CENTER)
-        self.pack_start(bbox, False, True, SPACING)
+        self.pack_start(bbox, False, False, SPACING)
 
         self.goToStart_button = Gtk.ToolButton()
         self.goToStart_button.set_icon_name("media-skip-backward")
@@ -222,18 +222,18 @@ class ViewerContainer(Gtk.Box, Loggable):
         self.goToStart_button.set_tooltip_text(
             _("Go to the beginning of the timeline"))
         self.goToStart_button.set_sensitive(False)
-        bbox.pack_start(self.goToStart_button, False, True, 0)
+        bbox.pack_start(self.goToStart_button, False, False, 0)
 
         self.back_button = Gtk.ToolButton()
         self.back_button.set_icon_name("media-seek-backward")
         self.back_button.connect("clicked", self._backCb)
         self.back_button.set_tooltip_text(_("Go back one second"))
         self.back_button.set_sensitive(False)
-        bbox.pack_start(self.back_button, False, True, 0)
+        bbox.pack_start(self.back_button, False, False, 0)
 
         self.playpause_button = PlayPauseButton()
         self.playpause_button.connect("play", self._playButtonCb)
-        bbox.pack_start(self.playpause_button, False, True, 0)
+        bbox.pack_start(self.playpause_button, False, False, 0)
         self.playpause_button.set_sensitive(False)
 
         self.forward_button = Gtk.ToolButton()
@@ -241,7 +241,7 @@ class ViewerContainer(Gtk.Box, Loggable):
         self.forward_button.connect("clicked", self._forwardCb)
         self.forward_button.set_tooltip_text(_("Go forward one second"))
         self.forward_button.set_sensitive(False)
-        bbox.pack_start(self.forward_button, False, True, 0)
+        bbox.pack_start(self.forward_button, False, False, 0)
 
         self.goToEnd_button = Gtk.ToolButton()
         self.goToEnd_button.set_icon_name("media-skip-forward")
@@ -249,7 +249,7 @@ class ViewerContainer(Gtk.Box, Loggable):
         self.goToEnd_button.set_tooltip_text(
             _("Go to the end of the timeline"))
         self.goToEnd_button.set_sensitive(False)
-        bbox.pack_start(self.goToEnd_button, False, True, 0)
+        bbox.pack_start(self.goToEnd_button, False, False, 0)
 
         self.timecode_entry = TimeWidget()
         self.timecode_entry.setWidgetValue(0)
@@ -263,7 +263,7 @@ class ViewerContainer(Gtk.Box, Loggable):
         self.undock_button.connect("clicked", self.undock)
         self.undock_button.set_tooltip_text(
             _("Detach the viewer\nYou can re-attach it by closing the newly created window."))
-        bbox.pack_start(self.undock_button, False, True, 0)
+        bbox.pack_start(self.undock_button, False, False, 0)
 
         self._haveUI = True
 


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