[gnome-documents] all: Use margin-{start, end} instead of deprecated margin-{left, right}



commit d977ca18eda9f358c49199be4389629d308aebd3
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Feb 25 11:37:07 2014 +0100

    all: Use margin-{start,end} instead of deprecated margin-{left,right}
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725127

 src/lib/gd-nav-bar.c |    8 ++++----
 src/notifications.js |   10 +++++-----
 src/preview.js       |    8 ++++----
 src/properties.js    |    4 ++--
 src/selections.js    |    4 ++--
 src/sharing.js       |    4 ++--
 6 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/src/lib/gd-nav-bar.c b/src/lib/gd-nav-bar.c
index 08e1ba8..8264dd8 100644
--- a/src/lib/gd-nav-bar.c
+++ b/src/lib/gd-nav-bar.c
@@ -855,8 +855,8 @@ create_preview_window (GdNavBar *self)
         gtk_style_context_add_class (context, GTK_STYLE_CLASS_TOOLTIP);
 
         box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
-        gtk_widget_set_margin_left (box, 6);
-        gtk_widget_set_margin_right (box, 6);
+        gtk_widget_set_margin_start (box, 6);
+        gtk_widget_set_margin_end (box, 6);
         gtk_widget_set_margin_top (box, 6);
         gtk_widget_set_margin_bottom (box, 6);
         gtk_container_add (GTK_CONTAINER (self->priv->preview_window), box);
@@ -912,8 +912,8 @@ gd_nav_bar_init (GdNavBar *self)
         gtk_container_add (GTK_CONTAINER (self), inner_box);
 
         priv->button_area = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-        gtk_widget_set_margin_left (priv->button_area, 5);
-        gtk_widget_set_margin_right (priv->button_area, 5);
+        gtk_widget_set_margin_start (priv->button_area, 5);
+        gtk_widget_set_margin_end (priv->button_area, 5);
         gtk_widget_show (priv->button_area);
         gtk_box_pack_start (GTK_BOX (inner_box), priv->button_area, FALSE, FALSE, 0);
 
diff --git a/src/notifications.js b/src/notifications.js
index 4133f9e..b61da76 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -51,8 +51,8 @@ const PrintNotification = new Lang.Class({
     _onPrintBegin: function() {
         this.widget = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL,
                                      row_spacing: 6,
-                                     margin_left: 12,
-                                     margin_right: 12});
+                                     margin_start: 12,
+                                     margin_end: 12});
 
         this._statusLabel = new Gtk.Label();
         this.widget.add(this._statusLabel);
@@ -63,7 +63,7 @@ const PrintNotification = new Lang.Class({
                                                                    pixel_size: 16,
                                                                    margin_top: 2,
                                                                    margin_bottom: 2 }),
-                                            margin_left: 12,
+                                            margin_start: 12,
                                             valign: Gtk.Align.CENTER
                                             });
         this.widget.attach_next_to(this._stopButton, this._statusLabel,
@@ -181,8 +181,8 @@ const IndexingNotification = new Lang.Class({
 
     _buildWidget: function() {
         this.widget = new Gtk.Grid({ orientation: Gtk.Orientation.HORIZONTAL,
-                                     margin_left: 12,
-                                     margin_right: 12,
+                                     margin_start: 12,
+                                     margin_end: 12,
                                      column_spacing: 12 });
 
         let spinner = new Gtk.Spinner({ width_request: 16,
diff --git a/src/preview.js b/src/preview.js
index 7a0966f..295991d 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -616,8 +616,8 @@ const PreviewNavControls = new Lang.Class({
 
         this.prev_widget = new Gtk.Button({ child: new Gtk.Image ({ icon_name: prevIconName,
                                                                     pixel_size: 16 }),
-                                            margin_left: _PREVIEW_NAVBAR_MARGIN,
-                                            margin_right: _PREVIEW_NAVBAR_MARGIN,
+                                            margin_start: _PREVIEW_NAVBAR_MARGIN,
+                                            margin_end: _PREVIEW_NAVBAR_MARGIN,
                                             halign: Gtk.Align.START,
                                             valign: Gtk.Align.CENTER });
         this.prev_widget.get_style_context().add_class('osd');
@@ -628,8 +628,8 @@ const PreviewNavControls = new Lang.Class({
 
         this.next_widget = new Gtk.Button({ child: new Gtk.Image ({ icon_name: nextIconName,
                                                                     pixel_size: 16 }),
-                                            margin_left: _PREVIEW_NAVBAR_MARGIN,
-                                            margin_right: _PREVIEW_NAVBAR_MARGIN,
+                                            margin_start: _PREVIEW_NAVBAR_MARGIN,
+                                            margin_end: _PREVIEW_NAVBAR_MARGIN,
                                             halign: Gtk.Align.END,
                                             valign: Gtk.Align.CENTER });
         this.next_widget.get_style_context().add_class('osd');
diff --git a/src/properties.js b/src/properties.js
index 91d297a..3c76226 100644
--- a/src/properties.js
+++ b/src/properties.js
@@ -69,8 +69,8 @@ const PropertiesDialog = new Lang.Class({
                                    row_spacing: 6,
                                    column_spacing: 24,
                                    margin_top: 12,
-                                   margin_left: 24,
-                                   margin_right: 24,
+                                   margin_start: 24,
+                                   margin_end: 24,
                                    margin_bottom: 12 });
 
         let contentArea = this.widget.get_content_area();
diff --git a/src/selections.js b/src/selections.js
index 070fa82..16032de 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -430,8 +430,8 @@ const OrganizeCollectionView = new Lang.Class({
         this.widget = new Gtk.Overlay();
 
         this._sw = new Gtk.ScrolledWindow({ shadow_type: Gtk.ShadowType.IN,
-                                            margin_left: 5,
-                                            margin_right: 5,
+                                            margin_start: 5,
+                                            margin_end: 5,
                                             margin_bottom: 3 });
         this.widget.add(this._sw);
 
diff --git a/src/sharing.js b/src/sharing.js
index 4f9fe32..5a4bbf8 100644
--- a/src/sharing.js
+++ b/src/sharing.js
@@ -103,8 +103,8 @@ const SharingDialog = new Lang.Class({
         let mainGrid = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL,
                                       column_spacing: 6,
                                       row_spacing: 6,
-                                      margin_left: 12,
-                                      margin_right: 12 });
+                                      margin_start: 12,
+                                      margin_end: 12 });
         let contentArea = this.widget.get_content_area();
         contentArea.pack_start(mainGrid, true, true, 0);
 


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