From d74611c93bed19d29318e017778e7e06fc7ab01b Mon Sep 17 00:00:00 2001 From: "g@localhost.localdomain" Date: Sun, 27 Aug 2006 22:48:19 +0200 Subject: [PATCH] Add the non-buttons in the toolbar as a ToolItem. --- ui/gtk/main_window.glade | 165 +++++++++++++++++++++++------------------------ ui/gtk/pysize_window.py | 7 ++ 2 files changed, 86 insertions(+), 86 deletions(-) diff --git a/ui/gtk/main_window.glade b/ui/gtk/main_window.glade index 36579c0..ce6e520 100644 --- a/ui/gtk/main_window.glade +++ b/ui/gtk/main_window.glade @@ -3,46 +3,6 @@ - - - - ZoomFit - Zoom Fit - gtk-zoom-fit - - - - - - ZoomIn - Zoom In - gtk-zoom-in - - - - - - ZoomOut - Zoom Out - gtk-zoom-out - - - - - - - - - - ParentDirectory - Parent Directory - gtk-go-up - - - - - - @@ -128,6 +88,46 @@ + + + + + ParentDirectory + Parent Directory + gtk-go-up + + + + + + + + + + ZoomFit + Zoom Fit + gtk-zoom-fit + + + + + + ZoomIn + Zoom In + gtk-zoom-in + + + + + + ZoomOut + Zoom Out + gtk-zoom-out + + + + + @@ -165,53 +165,8 @@ - + True - - - True - - - - - True - - - right - Max depth: - True - 0.0 - - - False - False - - - - - True - 0 1 100 1 10 0 - True - 4 - True - 0 - True - 4 - - - - False - False - 1 - - - - - False - False - 1 - - False @@ -284,4 +239,42 @@ + + 250 + 440 + + + True + + + right + Max depth: + True + 0.0 + + + False + False + + + + + True + 0 1 100 1 10 0 + True + 4 + True + 0 + True + 4 + + + False + False + 1 + + + + + diff --git a/ui/gtk/pysize_window.py b/ui/gtk/pysize_window.py index 95ea619..8f5e03b 100644 --- a/ui/gtk/pysize_window.py +++ b/ui/gtk/pysize_window.py @@ -66,6 +66,13 @@ class PysizeWindow: action_updater = lambda w, building: update_action(zoom_fit_action, w) main_widget.connect('building-tree-state-changed', action_updater) + toolbar = builder.get_widget('toolbar') + toolbar_remaining = builder.get_widget('toolbar_remaining') + toolbar_remaining.unparent() + tool_item = gtk.ToolItem() + tool_item.add(toolbar_remaining) + toolbar.insert(tool_item, -1) + callbacks = { 'quit_action': lambda w: gtk.main_quit(), 'refresh_tree_action': lambda w: main_widget.refresh_tree(), -- 2.11.4.GIT