[sushi] evince-viewer: move the fullscreen button to the right hand side



commit 875e81b8bca339402041f464a47b9c0716fa78f4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 11 15:29:16 2012 -0400

    evince-viewer: move the fullscreen button to the right hand side
    
    To be consistent with what the other viewers do.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=665568

 src/js/viewers/evince.js |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/js/viewers/evince.js b/src/js/viewers/evince.js
index 36cf5e5..1cf5b1f 100644
--- a/src/js/viewers/evince.js
+++ b/src/js/viewers/evince.js
@@ -134,17 +134,10 @@ EvinceRenderer.prototype = {
 
         this._toolbarActor = new GtkClutter.Actor({ contents: this._mainToolbar });
 
-        this._toolbarZoom = Utils.createFullScreenButton(this._mainWindow);
-        this._mainToolbar.insert(this._toolbarZoom, 0);
-
-        let separator = new Gtk.SeparatorToolItem();
-        separator.show();
-        this._mainToolbar.insert(separator, 1);
-
         this._toolbarBack = new Gtk.ToolButton({ expand: false,
                                                  "icon-name": "go-previous-symbolic" });
         this._toolbarBack.show();
-        this._mainToolbar.insert(this._toolbarBack, 2);
+        this._mainToolbar.insert(this._toolbarBack, -1);
 
         this._toolbarBack.connect("clicked",
                                   Lang.bind(this, function () {
@@ -152,18 +145,25 @@ EvinceRenderer.prototype = {
                                   }));
 
         let labelItem = this._createLabelItem();
-        this._mainToolbar.insert(labelItem, 3);
+        this._mainToolbar.insert(labelItem, -1);
 
         this._toolbarForward = new Gtk.ToolButton({ expand: false,
                                                  "icon-name": "go-next-symbolic" });
         this._toolbarForward.show();
-        this._mainToolbar.insert(this._toolbarForward, 4);
+        this._mainToolbar.insert(this._toolbarForward, -1);
 
         this._toolbarForward.connect("clicked",
                                      Lang.bind(this, function () {
                                          this._view.next_page();
                                      }));
 
+        let separator = new Gtk.SeparatorToolItem();
+        separator.show();
+        this._mainToolbar.insert(separator, -1);
+
+        this._toolbarZoom = Utils.createFullScreenButton(this._mainWindow);
+        this._mainToolbar.insert(this._toolbarZoom, -1);
+
         this._updatePageLabel();
 
         return this._toolbarActor;



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