[latexila/gnome-3] Structure: remove "expand all" from the toolbar



commit 4562b805ea598bd489f9c8f8a035582adfed504c
Author: SÃbastien Wilmet <swilmet src gnome org>
Date:   Fri Mar 30 00:47:46 2012 +0200

    Structure: remove "expand all" from the toolbar
    
    This action is a bit useless because by default all the items are
    already expanded.
    
    Another (better) reason to remove this action is that the mini-toolbar
    had too many actions. On a small screen, we want to have the side panel
    as small as possible, but with a long mini-toolbar is not possible in
    GTK+ 3.

 src/structure.vala |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/structure.vala b/src/structure.vala
index 6732452..60b48cb 100644
--- a/src/structure.vala
+++ b/src/structure.vala
@@ -137,17 +137,6 @@ public class Structure : Grid
             show_document (_main_window.active_document, true);
         });
 
-        // separator
-        SeparatorToolItem sep = new SeparatorToolItem ();
-        grid.add (sep);
-
-        // expand all button
-        Button expand_button = Utils.get_toolbar_button (Stock.ZOOM_IN);
-        expand_button.tooltip_text = _("Expand All");
-        grid.add (expand_button);
-
-        expand_button.clicked.connect (() => _tree_view.expand_all ());
-
         // collapse all button
         Button collapse_button = Utils.get_toolbar_button (Stock.ZOOM_OUT);
         collapse_button.tooltip_text = _("Collapse All");
@@ -156,7 +145,7 @@ public class Structure : Grid
         collapse_button.clicked.connect (() => _tree_view.collapse_all ());
 
         // separator
-        sep = new SeparatorToolItem ();
+        SeparatorToolItem sep = new SeparatorToolItem ();
         grid.add (sep);
 
         // simple list buttons



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