online-accounts: Add margins to the rows' icons

Per Allan's request, add more margin to the rows' icons.

https://bugzilla.gnome.org/show_bug.cgi?id=774222
This commit is contained in:
Georges Basile Stavracas Neto 2017-02-16 10:07:59 -02:00 committed by Debarshi Ray
parent 1f1f2e2b1f
commit 13da84e451

View file

@ -153,6 +153,7 @@ add_provider_row (CcGoaPanel *self,
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG); image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
gtk_container_add (GTK_CONTAINER (row_grid), image); gtk_container_add (GTK_CONTAINER (row_grid), image);
g_object_set (image, "margin", 6, NULL);
markup = g_strdup_printf ("<b>%s</b>", name); markup = g_strdup_printf ("<b>%s</b>", name);
label = gtk_label_new (NULL); label = gtk_label_new (NULL);
@ -609,6 +610,8 @@ on_account_added (GoaClient *client,
gtk_image_set_from_gicon (GTK_IMAGE (icon), gicon, GTK_ICON_SIZE_DIALOG); gtk_image_set_from_gicon (GTK_IMAGE (icon), gicon, GTK_ICON_SIZE_DIALOG);
} }
g_object_set (icon, "margin", 6, NULL);
gtk_container_add (GTK_CONTAINER (box), icon); gtk_container_add (GTK_CONTAINER (box), icon);
/* The name of the provider */ /* The name of the provider */
@ -628,6 +631,7 @@ on_account_added (GoaClient *client,
/* "Needs attention" icon */ /* "Needs attention" icon */
icon = gtk_image_new_from_icon_name ("dialog-warning-symbolic", GTK_ICON_SIZE_BUTTON); icon = gtk_image_new_from_icon_name ("dialog-warning-symbolic", GTK_ICON_SIZE_BUTTON);
gtk_widget_set_no_show_all (icon, TRUE); gtk_widget_set_no_show_all (icon, TRUE);
g_object_set (icon, "margin", 6, NULL);
g_object_bind_property (goa_object_peek_account (object), g_object_bind_property (goa_object_peek_account (object),
"attention-needed", "attention-needed",
icon, icon,