[gnome-documents] toolbar: center the page count label in the toolbar



commit 44ddedb8350bb9509da7fa2dc4ab41fd024751cf
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jul 21 10:34:15 2011 -0400

    toolbar: center the page count label in the toolbar

 src/mainToolbar.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index 1705ad1..ac94d47 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -120,6 +120,12 @@ MainToolbar.prototype = {
         labelItem.set_expand(true);
         this.widget.insert(labelItem, 1);
 
+        let rightGroup = new Gtk.ToolItem();
+        this.widget.insert(rightGroup, 2);
+
+        let sizeGroup = new Gtk.SizeGroup();
+        sizeGroup.add_widget(back);
+        sizeGroup.add_widget(rightGroup);
 
         if (model && document) {
             model.connect('page-changed', Lang.bind(this,



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