[gnome-control-center] region: Use margin-start/end instead of margin-left/right



commit 80aaf11b1a7c77665f0f66145131d06a433f2ecb
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Tue Nov 19 22:29:36 2013 +0200

    region: Use margin-start/end instead of margin-left/right
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712661

 panels/region/cc-format-chooser.c |    4 ++--
 panels/region/cc-input-chooser.c  |    4 ++--
 panels/region/cc-region-panel.c   |   12 ++++++------
 panels/region/format-chooser.ui   |    6 +++---
 panels/region/input-chooser.ui    |    8 ++++----
 panels/region/input-options.ui    |    4 ++--
 panels/region/region.ui           |   28 ++++++++++++++--------------
 7 files changed, 33 insertions(+), 33 deletions(-)
---
diff --git a/panels/region/cc-format-chooser.c b/panels/region/cc-format-chooser.c
index 7cb53ad..1a548a2 100644
--- a/panels/region/cc-format-chooser.c
+++ b/panels/region/cc-format-chooser.c
@@ -207,8 +207,8 @@ padded_label_new (char *text, gboolean narrow)
         gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
         gtk_widget_set_margin_top (widget, 10);
         gtk_widget_set_margin_bottom (widget, 10);
-        gtk_widget_set_margin_left (widget, narrow ? 10 : 80);
-        gtk_widget_set_margin_right (widget, narrow ? 10 : 80);
+        gtk_widget_set_margin_start (widget, narrow ? 10 : 80);
+        gtk_widget_set_margin_end (widget, narrow ? 10 : 80);
         gtk_box_pack_start (GTK_BOX (widget), gtk_label_new (text), FALSE, FALSE, 0);
 
         return widget;
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index a6c1c4b..cf12efd 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -106,8 +106,8 @@ locale_info_free (gpointer data)
 static void
 set_row_widget_margins (GtkWidget *widget)
 {
-  gtk_widget_set_margin_left (widget, 20);
-  gtk_widget_set_margin_right (widget, 20);
+  gtk_widget_set_margin_start (widget, 20);
+  gtk_widget_set_margin_end (widget, 20);
   gtk_widget_set_margin_top (widget, 6);
   gtk_widget_set_margin_bottom (widget, 6);
 }
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 42eef0a..6615d49 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -235,8 +235,8 @@ show_restart_notification (CcRegionPanel *self,
         g_object_add_weak_pointer (G_OBJECT (priv->notification),
                                    (gpointer *)&priv->notification);
         box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 24);
-        gtk_widget_set_margin_left (box, 12);
-        gtk_widget_set_margin_right (box, 12);
+        gtk_widget_set_margin_start (box, 12);
+        gtk_widget_set_margin_end (box, 12);
         gtk_widget_set_margin_top (box, 6);
         gtk_widget_set_margin_bottom (box, 6);
         label = gtk_label_new (_("Your session needs to be restarted for changes to take effect"));
@@ -865,16 +865,16 @@ add_input_row (CcRegionPanel   *self,
         gtk_container_add (GTK_CONTAINER (row), box);
         label = gtk_label_new (name);
         gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
-        gtk_widget_set_margin_left (label, 20);
-        gtk_widget_set_margin_right (label, 20);
+        gtk_widget_set_margin_start (label, 20);
+        gtk_widget_set_margin_end (label, 20);
         gtk_widget_set_margin_top (label, 6);
         gtk_widget_set_margin_bottom (label, 6);
         gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0);
 
         if (strcmp (type, INPUT_SOURCE_TYPE_IBUS) == 0) {
                 image = gtk_image_new_from_icon_name ("system-run-symbolic", GTK_ICON_SIZE_BUTTON);
-                gtk_widget_set_margin_left (image, 20);
-                gtk_widget_set_margin_right (image, 20);
+                gtk_widget_set_margin_start (image, 20);
+                gtk_widget_set_margin_end (image, 20);
                 gtk_widget_set_margin_top (image, 6);
                 gtk_widget_set_margin_bottom (image, 6);
                 gtk_style_context_add_class (gtk_widget_get_style_context (image), "dim-label");
diff --git a/panels/region/format-chooser.ui b/panels/region/format-chooser.ui
index cb6a56b..4d2594f 100644
--- a/panels/region/format-chooser.ui
+++ b/panels/region/format-chooser.ui
@@ -44,8 +44,8 @@
           <object class="GtkBox" id="box1">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="margin_left">6</property>
-            <property name="margin_right">6</property>
+            <property name="margin_start">6</property>
+            <property name="margin_end">6</property>
             <property name="margin_top">6</property>
             <property name="margin_bottom">6</property>
             <property name="hexpand">True</property>
@@ -112,7 +112,7 @@
                 <property name="can_focus">False</property>
                 <property name="halign">start</property>
                 <property name="valign">start</property>
-                <property name="margin_right">20</property>
+                <property name="margin_end">20</property>
                 <property name="hexpand">True</property>
                 <property name="row_spacing">6</property>
                 <property name="column_spacing">6</property>
diff --git a/panels/region/input-chooser.ui b/panels/region/input-chooser.ui
index 29d82f5..13be9ec 100644
--- a/panels/region/input-chooser.ui
+++ b/panels/region/input-chooser.ui
@@ -18,8 +18,8 @@
             <property name="hscrollbar-policy">never</property>
             <property name="vscrollbar-policy">never</property>
             <property name="shadow-type">in</property>
-            <property name="margin-left">6</property>
-            <property name="margin-right">6</property>
+            <property name="margin-start">6</property>
+            <property name="margin-end">6</property>
             <property name="margin-top">6</property>
             <property name="margin-bottom">6</property>
             <child>
@@ -42,8 +42,8 @@
           <object class="GtkSearchEntry" id="filter-entry">
             <property name="visible">False</property>
             <property name="hexpand">True</property>
-            <property name="margin-left">6</property>
-            <property name="margin-right">6</property>
+            <property name="margin-start">6</property>
+            <property name="margin-end">6</property>
             <property name="margin-top">6</property>
             <property name="margin-bottom">6</property>
           </object>
diff --git a/panels/region/input-options.ui b/panels/region/input-options.ui
index e7cdb55..391d3c7 100644
--- a/panels/region/input-options.ui
+++ b/panels/region/input-options.ui
@@ -42,8 +42,8 @@
           <object class="GtkGrid" id="grid1">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="margin_left">6</property>
-            <property name="margin_right">6</property>
+            <property name="margin_start">6</property>
+            <property name="margin_end">6</property>
             <property name="margin_top">6</property>
             <property name="margin_bottom">6</property>
             <property name="row_spacing">6</property>
diff --git a/panels/region/region.ui b/panels/region/region.ui
index d254c95..6b24f50 100644
--- a/panels/region/region.ui
+++ b/panels/region/region.ui
@@ -12,8 +12,8 @@
           <object class="GtkFrame" id="language_section">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="margin_left">134</property>
-            <property name="margin_right">134</property>
+            <property name="margin_start">134</property>
+            <property name="margin_end">134</property>
             <property name="margin_top">24</property>
             <property name="margin_bottom">24</property>
             <property name="shadow_type">in</property>
@@ -32,8 +32,8 @@
                           <object class="GtkLabel" id="language_heading">
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
-                            <property name="margin_left">20</property>
-                            <property name="margin_right">20</property>
+                            <property name="margin_start">20</property>
+                            <property name="margin_end">20</property>
                             <property name="margin_top">6</property>
                             <property name="margin_bottom">6</property>
                             <property name="xalign">0</property>
@@ -50,8 +50,8 @@
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
                             <property name="xalign">1</property>
-                            <property name="margin_left">20</property>
-                            <property name="margin_right">20</property>
+                            <property name="margin_start">20</property>
+                            <property name="margin_end">20</property>
                             <property name="margin_top">6</property>
                             <property name="margin_bottom">6</property>
                             <property name="label" translatable="yes">English (United Kingdom)</property>
@@ -77,8 +77,8 @@
                           <object class="GtkLabel" id="formats_heading">
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
-                            <property name="margin_left">20</property>
-                            <property name="margin_right">20</property>
+                            <property name="margin_start">20</property>
+                            <property name="margin_end">20</property>
                             <property name="margin_top">6</property>
                             <property name="margin_bottom">6</property>
                             <property name="xalign">0</property>
@@ -95,8 +95,8 @@
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
                             <property name="xalign">1</property>
-                            <property name="margin_left">20</property>
-                            <property name="margin_right">20</property>
+                            <property name="margin_start">20</property>
+                            <property name="margin_end">20</property>
                             <property name="margin_top">6</property>
                             <property name="margin_bottom">6</property>
                             <property name="label" translatable="yes">United Kingdom</property>
@@ -127,8 +127,8 @@
           <object class="GtkBox" id="input_section">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="margin_left">134</property>
-            <property name="margin_right">134</property>
+            <property name="margin_start">134</property>
+            <property name="margin_end">134</property>
             <property name="margin_bottom">24</property>
             <property name="orientation">vertical</property>
             <child>
@@ -140,8 +140,8 @@
                   <object class="GtkLabel" id="input_heading">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="margin_left">6</property>
-                    <property name="margin_right">6</property>
+                    <property name="margin_start">6</property>
+                    <property name="margin_end">6</property>
                     <property name="xalign">0</property>
                     <property name="label" translatable="yes">Input Sources</property>
                     <attributes>


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