[pitivi] Use Gtk.Paned instead of VPaned and HPaned



commit c91d922a2eba2e9d743c229b6a2c7701510ba01a
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Oct 30 18:46:19 2015 +0100

    Use Gtk.Paned instead of VPaned and HPaned
    
    Reviewed-by: Thibault Saunier <tsaunier gnome org>
    Differential Revision: https://phabricator.freedesktop.org/D542

 pitivi/clipproperties.py |    9 +++------
 pitivi/mainwindow.py     |    6 +++---
 2 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index a5796cd..c1a3cfa 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -211,7 +211,7 @@ class EffectProperties(Gtk.Expander, Loggable):
             _("Select a clip on the timeline to configure its associated effects"))
 
         # Prepare the main container widgets and lay out everything
-        self._vcontent = Gtk.VPaned()
+        self._vcontent = Gtk.Paned(orientation=Gtk.Orientation.VERTICAL)
         vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
         vbox.pack_start(self.treeview_scrollwin, expand=True, fill=True, padding=0)
         vbox.pack_start(self._toolbar, expand=False, fill=False, padding=0)
@@ -445,7 +445,8 @@ class EffectProperties(Gtk.Expander, Loggable):
     def updateAll(self, path=None):
         if self.get_expanded():
             if len(self.clips) == 1:
-                self._setEffectDragable()
+                self.show()
+                self._infobar.hide()
                 self._updateTreeview()
                 if path:
                     self.selection.select_path(path)
@@ -476,10 +477,6 @@ class EffectProperties(Gtk.Expander, Loggable):
             to_append.append(effect)
             self.storemodel.append(to_append)
 
-    def _setEffectDragable(self):
-        self.show()
-        self._infobar.hide()
-
     def _treeviewSelectionChangedCb(self, treeview):
         if self.selection.count_selected_rows() == 0:
             self._toolbar.hide()
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 6989b1a..879765e 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -280,9 +280,9 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
         self.set_titlebar(self._headerbar)
 
         # Set up our main containers, in the order documented above
-        self.vpaned = Gtk.VPaned()  # Separates the timeline from tabs+viewer
-        self.mainhpaned = Gtk.HPaned()  # Separates the viewer from tabs
-        self.secondhpaned = Gtk.HPaned()  # Separates the two sets of tabs
+        self.vpaned = Gtk.Paned(orientation=Gtk.Orientation.VERTICAL)  # Separates the tabs+viewer from the 
timeline
+        self.mainhpaned = Gtk.Paned(orientation=Gtk.Orientation.HORIZONTAL)  # Separates the tabs from the 
viewer
+        self.secondhpaned = Gtk.Paned(orientation=Gtk.Orientation.HORIZONTAL)  # Separates the two sets of 
tabs
         self.vpaned.pack1(self.mainhpaned, resize=False, shrink=False)
         self.mainhpaned.pack1(self.secondhpaned, resize=True, shrink=False)
         self.add(self.vpaned)


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