[pitivi] mainwindow: Remove a vbox element which is not useful
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] mainwindow: Remove a vbox element which is not useful
- Date: Wed, 24 Sep 2014 17:06:06 +0000 (UTC)
commit 2ce469c5afc72ca442645870361ed4bbe5524bf0
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Apr 29 15:44:24 2014 +0200
mainwindow: Remove a vbox element which is not useful
pitivi/mainwindow.py | 9 +++------
tests/dogtail_scripts/common.py | 3 +--
2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 7920a30..2e860ea 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -201,7 +201,7 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
def _createUi(self):
"""
- Create the graphical interface with the following hierarchy in a vbox:
+ Create the graphical interface with the following hierarchy:
-- self.vpaned
---- self.mainhpaned (upper half)
------ self.secondaryhpaned (upper-left)
@@ -212,12 +212,9 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
In the window titlebar, there is also a HeaderBar widget.
- The full hierarchy is also visible with accessibility tools like "sniff"
+ The full hierarchy is visible with accessibility tools like "sniff".
"""
self.set_icon_name("pitivi")
- vbox = Gtk.VBox(homogeneous=False)
- self.add(vbox)
- vbox.show()
# Main "toolbar" (using client-side window decorations with HeaderBar)
self._headerbar = Gtk.HeaderBar()
@@ -246,7 +243,7 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
self.secondhpaned = Gtk.HPaned() # Separates the two sets of tabs
self.vpaned.pack1(self.mainhpaned, resize=True, shrink=False)
self.mainhpaned.pack1(self.secondhpaned, resize=True, shrink=False)
- vbox.pack_start(self.vpaned, True, True, 0)
+ self.add(self.vpaned)
self.vpaned.show()
self.secondhpaned.show()
self.mainhpaned.show()
diff --git a/tests/dogtail_scripts/common.py b/tests/dogtail_scripts/common.py
index a4a9879..0062d10 100644
--- a/tests/dogtail_scripts/common.py
+++ b/tests/dogtail_scripts/common.py
@@ -67,14 +67,13 @@ class PitiviTestCase(unittest.TestCase):
# Reuse those variables throughout your scripts for efficient access.
mainwindow = self.pitivi.children[0]
self.assertEqual('main window', mainwindow.name)
- headerbar, box = mainwindow.children
+ headerbar, contents = mainwindow.children
# Headerbar
self.main_menu_button = headerbar.children[5]
self.assertEqual("main menu button", self.main_menu_button.name)
# Content below the headerbar.
- contents = box.children[0]
self.assertEqual('contents', contents.name)
upper_half, timeline_area = contents.children
self.assertEqual('upper half', upper_half.name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]