diff options
author | Martin Hatina <mhatina@redhat.com> | 2015-05-04 11:11:22 +0200 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2015-05-11 18:40:38 +0200 |
commit | 6b169bed0e3ae757cee4c2adc8f3dd79c41435a6 (patch) | |
tree | 45a3fed00a8b288c57b09828354f4dd7131bcdc8 | |
parent | 63a20d81ff3b2023281ca389c24956e8cfef4248 (diff) | |
download | gnome-control-center-6b169bed0e3ae757cee4c2adc8f3dd79c41435a6.tar.gz |
notifications: Align icons
Icons are now aligned even when they don't have same size.
https://bugzilla.gnome.org/show_bug.cgi?id=711389
-rw-r--r-- | panels/notifications/cc-notifications-panel.c | 1 | ||||
-rw-r--r-- | panels/notifications/notifications.ui | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c index a04b05ac6..7822161f6 100644 --- a/panels/notifications/cc-notifications-panel.c +++ b/panels/notifications/cc-notifications-panel.c @@ -216,6 +216,7 @@ add_application (CcNotificationsPanel *panel, w = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG); gtk_widget_set_margin_start (w, 12); + gtk_size_group_add_widget (GTK_SIZE_GROUP (gtk_builder_get_object (panel->builder, "sizegroup1")), w); gtk_container_add (GTK_CONTAINER (box), w); g_object_unref (icon); diff --git a/panels/notifications/notifications.ui b/panels/notifications/notifications.ui index b54b82c9a..5dc04e0bb 100644 --- a/panels/notifications/notifications.ui +++ b/panels/notifications/notifications.ui @@ -88,4 +88,7 @@ </packing> </child> </object> + <object class="GtkSizeGroup" id="sizegroup1"> + <property name="mode">both</property> + </object> </interface> |