[gnome-control-center/gnome-3-14] notifications: Align icons



commit 6b169bed0e3ae757cee4c2adc8f3dd79c41435a6
Author: Martin Hatina <mhatina redhat com>
Date:   Mon May 4 11:11:22 2015 +0200

    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(+), 0 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index a04b05a..7822161 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 b54b82c..5dc04e0 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>


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