[gnome-control-center] notifications: Align icons



commit 75df3ebe8705f31bffc049ac6c8ccbafd3eed000
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 d751d5f..8c4598a 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -296,6 +296,7 @@ add_application (CcNotificationsPanel *panel,
   gtk_widget_set_margin_start (w, 12);
   gtk_widget_set_margin_top (w, 8);
   gtk_widget_set_margin_bottom (w, 8);
+  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 67af1e1..ebe4ddc 100644
--- a/panels/notifications/notifications.ui
+++ b/panels/notifications/notifications.ui
@@ -195,4 +195,7 @@
       </object>
     </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]