From 6b169bed0e3ae757cee4c2adc8f3dd79c41435a6 Mon Sep 17 00:00:00 2001 From: Martin Hatina Date: Mon, 4 May 2015 11:11:22 +0200 Subject: notifications: Align icons Icons are now aligned even when they don't have same size. https://bugzilla.gnome.org/show_bug.cgi?id=711389 --- panels/notifications/cc-notifications-panel.c | 1 + panels/notifications/notifications.ui | 3 +++ 2 files changed, 4 insertions(+) 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 @@ + + both + -- cgit v1.2.1