[baobab/wip/grid-layout: 5/8] Do not show the toolbar in the home page



commit 66f7bcd13a4d397a0b1e0bbb6787a12ae3e1666b
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Wed Apr 11 16:00:29 2012 +0200

    Do not show the toolbar in the home page

 src/baobab-main-window.ui |   42 ------------------------------------------
 src/baobab-window.vala    |    8 +-------
 2 files changed, 1 insertions(+), 49 deletions(-)
---
diff --git a/src/baobab-main-window.ui b/src/baobab-main-window.ui
index f569bdf..1e1f3a3 100644
--- a/src/baobab-main-window.ui
+++ b/src/baobab-main-window.ui
@@ -10,48 +10,6 @@
         <property name="can_focus">False</property>
         <property name="show_arrow">False</property>
         <child>
-          <object class="GtkToolItem" id="home-page-toolitem">
-            <property name="visible">True</property>
-            <child>
-              <object class="GtkButtonBox" id="scan-buttonbox">
-                <property name="visible">True</property>
-                <property name="layout_style">start</property>
-                <style>
-                  <class name="linked"/>
-                </style>
-                <child>
-                  <object class="GtkButton" id="scan-folder-button">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="has_tooltip">True</property>
-                    <property name="tooltip_markup" translatable="yes">Scan a folder</property>
-                    <property name="tooltip_text" translatable="yes">Scan a folder</property>
-                    <property name="use_action_appearance">False</property>
-                    <property name="action_name">win.scan-folder</property>
-                    <property name="label" translatable="yes">Scan Folder</property>
-                    <property name="use_underline">True</property>
-                    <!--<property name="stock_id">gtk-directory</property>-->
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkButton" id="scan-remote-button">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="has_tooltip">True</property>
-                    <property name="tooltip_markup" translatable="yes">Scan a remote folder</property>
-                    <property name="tooltip_text" translatable="yes">Scan a remote folder</property>
-                    <property name="use_action_appearance">False</property>
-                    <property name="action_name">win.scan-remote</property>
-                    <property name="label" translatable="yes">Scan Remote Folder</property>
-                    <property name="use_underline">True</property>
-                    <!--<property name="stock_id">gtk-network</property>-->
-                  </object>
-                </child>
-              </object>
-            </child>
-          </object>
-        </child>
-        <child>
           <object class="GtkToolButton" id="show-home-page-button">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 5f60c14..8c5b974 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -26,9 +26,7 @@ namespace Baobab {
         Settings ui_settings;
         Gtk.Notebook main_notebook;
         Gtk.Toolbar toolbar;
-        Gtk.ToolItem toolbar_home_toolitem;
         Gtk.ToolButton toolbar_show_home_page;
-        Gtk.ToolButton toolbar_rescan;
         Gtk.InfoBar infobar;
         Gtk.Label infobar_primary;
         Gtk.Label infobar_secondary;
@@ -116,9 +114,7 @@ namespace Baobab {
             // Cache some objects from the builder.
             main_notebook = builder.get_object ("main-notebook") as Gtk.Notebook;
             toolbar = builder.get_object ("toolbar") as Gtk.Toolbar;
-            toolbar_home_toolitem = builder.get_object ("home-page-toolitem") as Gtk.ToolItem;
             toolbar_show_home_page = builder.get_object ("show-home-page-button") as Gtk.ToolButton;
-            toolbar_rescan = builder.get_object ("rescan-button") as Gtk.ToolButton;
             infobar = builder.get_object ("infobar") as Gtk.InfoBar;
             infobar_primary = builder.get_object ("infobar-primary-label") as Gtk.Label;
             infobar_secondary = builder.get_object ("infobar-secondary-label") as Gtk.Label;
@@ -161,9 +157,7 @@ namespace Baobab {
         }
 
         void set_ui_page (UIPage page) {
-            toolbar_home_toolitem.visible = (page == UIPage.HOME);
-            toolbar_show_home_page.visible = (page == UIPage.RESULT);
-            toolbar_rescan.visible = (page == UIPage.RESULT);
+            toolbar.visible = (page == UIPage.RESULT);
 
             main_notebook.page = page;
         }



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