[gnome-documents] selections: Fix toolbar item positions



commit 362dd1f70af63741083443604dae8f1b96b07ea1
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Feb 6 09:30:00 2014 +0100

    selections: Fix toolbar item positions
    
    GtkActionBar (and current GtkHeaderBar) has different pack_end
    semantics than GtkHeaderBar in GTK+ 3.10.x.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721699

 src/selections.js |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/selections.js b/src/selections.js
index 035814b..e7b77eb 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -757,20 +757,20 @@ const SelectionToolbar = new Lang.Class({
         toolbar.pack_start(this._toolbarTrash);
         this._toolbarTrash.connect('clicked', Lang.bind(this, this._onToolbarTrash));
 
-        // organize button
-        this._toolbarCollection = new Gd.HeaderSimpleButton({ label: _("Add to Collection") });
-        toolbar.pack_end(this._toolbarCollection);
-        this._toolbarCollection.connect('clicked', Lang.bind(this, this._onToolbarCollection));
+        // share button
+        this._toolbarShare = new Gd.HeaderSimpleButton({ label: _("Share") });
+        toolbar.pack_end(this._toolbarShare);
+        this._toolbarShare.connect('clicked', Lang.bind(this, this._onToolbarShare));
 
         // properties button
         this._toolbarProperties = new Gd.HeaderSimpleButton({ label: _("Properties") });
         toolbar.pack_end(this._toolbarProperties);
         this._toolbarProperties.connect('clicked', Lang.bind(this, this._onToolbarProperties));
 
-        // share button
-       this._toolbarShare = new Gd.HeaderSimpleButton({ label: _("Share") });
-        toolbar.pack_end(this._toolbarShare);
-        this._toolbarShare.connect('clicked', Lang.bind(this, this._onToolbarShare));
+        // organize button
+        this._toolbarCollection = new Gd.HeaderSimpleButton({ label: _("Add to Collection") });
+        toolbar.pack_end(this._toolbarCollection);
+        this._toolbarCollection.connect('clicked', Lang.bind(this, this._onToolbarCollection));
 
         this.widget.show_all();
 


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