[gnome-documents] Use enum name instead of literal value for grid position



commit 3d309479f8115041eaee2a40fc86c90626a4555a
Author: William Jon McCann <jmccann redhat com>
Date:   Fri Jan 18 11:46:07 2013 -0500

    Use enum name instead of literal value for grid position

 src/properties.js |   14 +++++++-------
 src/sharing.js    |    4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/properties.js b/src/properties.js
index 541f937..fb11647 100644
--- a/src/properties.js
+++ b/src/properties.js
@@ -122,7 +122,7 @@ const PropertiesDialog = new Lang.Class({
                                                editable: true,
                                                hexpand: true,
                                                halign: Gtk.Align.START });
-            grid.attach_next_to (this._titleEntry, this._title, 1, 2, 1);
+            grid.attach_next_to (this._titleEntry, this._title, Gtk.PositionType.RIGHT, 2, 1);
 
             let docId = doc.id;
             this._titleEntryTimeout = 0;
@@ -145,14 +145,14 @@ const PropertiesDialog = new Lang.Class({
         } else {
             this._titleEntry = new Gtk.Label({ label: doc.name,
                                                halign: Gtk.Align.START });
-            grid.attach_next_to (this._titleEntry, this._title, 1, 2, 1);
+            grid.attach_next_to (this._titleEntry, this._title, Gtk.PositionType.RIGHT, 2, 1);
         }
 
         // Author value
         if (this._author) {
             this._authorData = new Gtk.Label({ label: doc.author,
                                                halign: Gtk.Align.START });
-            grid.attach_next_to (this._authorData, this._author, 1, 2, 1);
+            grid.attach_next_to (this._authorData, this._author, Gtk.PositionType.RIGHT, 2, 1);
         }
 
         // Source value
@@ -173,24 +173,24 @@ const PropertiesDialog = new Lang.Class({
                                                     halign: Gtk.Align.START });
         }
 
-        grid.attach_next_to (this._sourceData, this._source, 1, 2, 1);
+        grid.attach_next_to (this._sourceData, this._source, Gtk.PositionType.RIGHT, 2, 1);
 
         // Date Modified value
         this._dateModifiedData = new Gtk.Label({ label: dateModifiedString,
                                                  halign: Gtk.Align.START });
-        grid.attach_next_to (this._dateModifiedData, this._dateModified, 1, 2, 1);
+        grid.attach_next_to (this._dateModifiedData, this._dateModified, Gtk.PositionType.RIGHT, 2, 1);
 
         // Date Created value
         if (this._dateCreated) {
             this._dateCreatedData = new Gtk.Label({ label: dateCreatedString,
                                                     halign: Gtk.Align.START });
-            grid.attach_next_to (this._dateCreatedData, this._dateCreated, 1, 2, 1);
+            grid.attach_next_to (this._dateCreatedData, this._dateCreated, Gtk.PositionType.RIGHT, 2, 1);
         }
 
         // Document type value
         this._documentTypeData = new Gtk.Label({ label: doc.typeDescription,
                                                  halign: Gtk.Align.START });
-        grid.attach_next_to (this._documentTypeData, this._docType, 1, 2, 1);
+        grid.attach_next_to (this._documentTypeData, this._docType, Gtk.PositionType.RIGHT, 2, 1);
 
         this.widget.show_all();
     }
diff --git a/src/sharing.js b/src/sharing.js
index 31eb3cd..1fc938b 100644
--- a/src/sharing.js
+++ b/src/sharing.js
@@ -202,13 +202,13 @@ const SharingDialog = new Lang.Class({
             this._comboBoxText.append_text(combo[i]);
 
         this._comboBoxText.set_active(0);
-        this._grid.attach_next_to(this._comboBoxText, this._contactEntry, 1, 1, 1);
+        this._grid.attach_next_to(this._comboBoxText, this._contactEntry, Gtk.PositionType.RIGHT, 1, 1);
 
         this._saveShare = new Gtk.Button({ label: _("Add"),
                                            no_show_all: true,
                                            sensitive: false });
         this._saveShare.connect ('clicked', Lang.bind(this, this._onAddClicked));
-        this._grid.attach_next_to(this._saveShare, this._comboBoxText, 1, 1, 1);
+        this._grid.attach_next_to(this._saveShare, this._comboBoxText, Gtk.PositionType.RIGHT, 1, 1);
 
         this._noPermission = new Gtk.Label({ halign: Gtk.Align.START,
                                              no_show_all: true,



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