[gnome-control-center] privacy: Fix margins around location dialog widgets



commit 76e3a53b2d69dabe04c1d7f98e1df5266c77bf9c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Mar 9 19:45:15 2016 +0000

    privacy: Fix margins around location dialog widgets
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763259

 panels/privacy/cc-privacy-panel.c |    8 ++++----
 panels/privacy/privacy.ui         |    3 +--
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c
index 0df5ccc..6659523 100644
--- a/panels/privacy/cc-privacy-panel.c
+++ b/panels/privacy/cc-privacy-panel.c
@@ -615,15 +615,16 @@ add_location_app (CcPrivacyPanel *self,
 
   row = gtk_list_box_row_new ();
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-  gtk_widget_set_margin_top (box, 6);
-  gtk_widget_set_margin_bottom (box, 6);
+  gtk_widget_set_margin_start (box, 12);
+  gtk_widget_set_margin_end (box, 6);
+  gtk_widget_set_margin_top (box, 12);
+  gtk_widget_set_margin_bottom (box, 12);
   gtk_container_add (GTK_CONTAINER (row), box);
   gtk_widget_set_hexpand (box, TRUE);
   gtk_container_add (GTK_CONTAINER (self->priv->location_apps_list_box), row);
 
   icon = g_app_info_get_icon (G_APP_INFO (app_info));
   w = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_LARGE_TOOLBAR);
-  gtk_widget_set_margin_start (w, 12);
   gtk_widget_set_halign (w, GTK_ALIGN_CENTER);
   gtk_widget_set_valign (w, GTK_ALIGN_CENTER);
   gtk_size_group_add_widget (self->priv->location_icon_size_group, w);
@@ -650,7 +651,6 @@ add_location_app (CcPrivacyPanel *self,
 
   w = gtk_switch_new ();
   gtk_switch_set_active (GTK_SWITCH (w), enabled);
-  gtk_widget_set_margin_end (w, 12);
   gtk_widget_set_halign (w, GTK_ALIGN_END);
   gtk_widget_set_valign (w, GTK_ALIGN_CENTER);
   gtk_box_pack_start (GTK_BOX (box), w, FALSE, FALSE, 0);
diff --git a/panels/privacy/privacy.ui b/panels/privacy/privacy.ui
index 9bc3580..9703b15 100644
--- a/panels/privacy/privacy.ui
+++ b/panels/privacy/privacy.ui
@@ -725,8 +725,7 @@ All the information we collect is made anonymous, and we will never share your d
       <object class="GtkBox" id="location-vbox">
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
-        <property name="margin_start">12</property>
-        <property name="margin_end">12</property>
+        <property name="margin">12</property>
         <property name="spacing">2</property>
         <child>
           <object class="GtkLabel" id="location_description_label">


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