[baobab/wip/vala: 31/45] Kill the statusbar



commit 8ae7b0d883379cbf727cb97a2a01f44a13be0334
Author: Paolo Borelli <pborelli gnome org>
Date:   Tue Jan 17 22:09:04 2012 +0100

    Kill the statusbar
    
    It serves no purpose.

 data/baobab-main-window.ui |   14 --------------
 data/baobab-menu.ui        |    5 ++++-
 src/baobab-window.vala     |    8 --------
 3 files changed, 4 insertions(+), 23 deletions(-)
---
diff --git a/data/baobab-main-window.ui b/data/baobab-main-window.ui
index 681ee76..6194568 100644
--- a/data/baobab-main-window.ui
+++ b/data/baobab-main-window.ui
@@ -318,19 +318,5 @@
         <property name="height">1</property>
       </packing>
     </child>
-    <child>
-      <object class="GtkStatusbar" id="statusbar">
-        <property name="visible">True</property>
-        <property name="can_focus">False</property>
-        <property name="hexpand">True</property>
-        <property name="spacing">2</property>
-      </object>
-      <packing>
-        <property name="left_attach">0</property>
-        <property name="top_attach">3</property>
-        <property name="width">2</property>
-        <property name="height">1</property>
-      </packing>
-    </child>
   </object>
 </interface>
diff --git a/data/baobab-menu.ui b/data/baobab-menu.ui
index fac090c..5a25965 100644
--- a/data/baobab-menu.ui
+++ b/data/baobab-menu.ui
@@ -8,6 +8,10 @@
       <item label="Scan F_older" action="win.scan-folder" accel="&lt;Primary&gt;o"/>
     </section>
     <section>
+      <item label="_Stop" action="win.stop"/>
+      <item label="_Reload" action="win.reload" accel="&lt;Primary&gt;r"/>
+    </section>
+    <section>
       <item label="_Help" action="win.help" accel="F1"/>
       <item label="_About" action="win.about"/>
     </section>
@@ -33,7 +37,6 @@
       </section>
       <section>
         <item label="_Toolbar" action="win.show-toolbar"/>
-        <item label="_Statusbar" action="win.show-statusbar"/>
       </section>
       <section>
         <item label="_Allocated Space" action="win.show-allocated"/>
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index b26a602..9fdbc4f 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -16,7 +16,6 @@ namespace Baobab {
 			{ "stop", on_stop_activate },
 			{ "reload", on_reload_activate },
 			{ "show-toolbar", on_show_toolbar },
-			{ "show-statusbar", on_show_statusbar },
 			{ "show-allocated", on_show_allocated },
 			{ "expand-all", on_expand_all },
 			{ "collapse-all", on_collapse_all },
@@ -77,10 +76,6 @@ namespace Baobab {
 			chart_type_combo.bind_property ("active", charts_notebook, "page", BindingFlags.SYNC_CREATE);
 			ui_settings.bind ("active-chart", chart_type_combo, "active-id", SettingsBindFlags.GET_NO_CHANGES);
 
-			// Setup the logic for statusbar visibility.
-			var statusbar = builder.get_object ("statusbar") as Gtk.Widget;
-			statusbar.visible = ui_settings.get_boolean ("statusbar-visible");
-
 			// Setup drag-n-drop
 			drag_data_received.connect(on_drag_data_received);
 			enable_drop ();
@@ -142,9 +137,6 @@ namespace Baobab {
 		void on_show_toolbar () {
 		}
 
-		void on_show_statusbar () {
-		}
-
 		void on_show_allocated () {
 		}
 



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