[gnome-documents] selections: always show the expanding separator



commit f71024115ed86af89770c532e52d4f1b7c2753fe
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 8 09:32:28 2012 -0500

    selections: always show the expanding separator
    
    Fixes jumping toolbars when changing selection, as reported by Matthias
    Clasen.

 src/selections.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/selections.js b/src/selections.js
index a6f20fe..9e9d911 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -684,7 +684,8 @@ SelectionToolbar.prototype = {
         this._leftBox.add(this._toolbarPrint);
         this._toolbarPrint.connect('clicked', Lang.bind(this, this._onToolbarPrint));
 
-        this._separator = new Gtk.SeparatorToolItem({ draw: false });
+        this._separator = new Gtk.SeparatorToolItem({ draw: false,
+                                                      visible: true });
         this._separator.set_expand(true);
         this.widget.insert(this._separator, -1);
 
@@ -794,9 +795,6 @@ SelectionToolbar.prototype = {
         else
             this._toolbarPrint.hide();
 
-        // if we're showing the favorite icon, also show the separator
-        this._separator.set_visible(showFavorite);
-
         if (canTrash)
             this._toolbarTrash.show_all();
         else



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