[gnome-documents] all: adapt to GTK+ flipping row_spacing/column_spacing in GtkGrid



commit 9208083854eb3740c2675f7480d7e4b82715f54f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Sep 6 15:21:03 2011 -0400

    all: adapt to GTK+ flipping row_spacing/column_spacing in GtkGrid
    
    See
    http://git.gnome.org/browse/gtk+/commit/?id=d717a2dcfc8603561f8a0f78982244e8b8fd9006
    for details on the GTK+ change.

 src/errorBox.js   |    2 +-
 src/sidebar.js    |    4 ++--
 src/spinnerBox.js |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/errorBox.js b/src/errorBox.js
index bfcbcfe..d6cdfdc 100644
--- a/src/errorBox.js
+++ b/src/errorBox.js
@@ -32,7 +32,7 @@ function ErrorBox(primary, secondary) {
 ErrorBox.prototype = {
     _init: function(primary, secondary) {
         this.widget = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL,
-                                     column_spacing: 12,
+                                     row_spacing: 12,
                                      hexpand: true,
                                      vexpand: true,
                                      halign: Gtk.Align.CENTER,
diff --git a/src/sidebar.js b/src/sidebar.js
index 059aed8..91f9eff 100644
--- a/src/sidebar.js
+++ b/src/sidebar.js
@@ -118,11 +118,11 @@ SidebarMainPage.prototype = {
                                      border_width: 6,
                                      width_request: _SIDEBAR_WIDTH_REQUEST,
                                      column_homogeneous: true,
-                                     column_spacing: 12 });
+                                     row_spacing: 12 });
 
         // sources button
         let buttonContent = new Gtk.Grid({ orientation: Gtk.Orientation.HORIZONTAL,
-                                           row_spacing: 6 });
+                                           column_spacing: 6 });
         // FIXME: setting yalign here seems wrong, but why are those not aligned
         // otherwise?
         buttonContent.add(new Gtk.Image({ icon_size: Gtk.IconSize.MENU,
diff --git a/src/spinnerBox.js b/src/spinnerBox.js
index 9d80b18..3a1004a 100644
--- a/src/spinnerBox.js
+++ b/src/spinnerBox.js
@@ -31,7 +31,7 @@ function SpinnerBox() {
 SpinnerBox.prototype = {
     _init: function() {
         this.widget = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL,
-                                     column_spacing: 24,
+                                     row_spacing: 24,
                                      hexpand: true,
                                      vexpand: true,
                                      halign: Gtk.Align.CENTER,



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