[gnome-contacts] Put the avatar frames in grids so that the frame doesn't expand



commit e78a5770f8dd0988d0ba0b77c6a0b3cd707a63c7
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jun 28 10:26:56 2011 +0200

    Put the avatar frames in grids so that the frame doesn't expand

 src/contacts-contact-pane.vala |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 4d883c8..0a18cf4 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -433,7 +433,10 @@ public class Contacts.ContactPane : EventBox {
   private void display_card (Contact contact) {
     var image_frame = new ContactFrame (PROFILE_SIZE);
     image_frame.set_image (contact.individual);
-    layout.add_widget_label (image_frame);
+    // Put the frame in a grid so its not expanded by the size-group
+    var ig = new Grid ();
+    ig.add (image_frame);
+    layout.add_widget_label (ig);
 
     layout.current_row.set_vexpand (false);
     var g = new Grid();
@@ -508,7 +511,10 @@ public class Contacts.ContactPane : EventBox {
     set_display_mode (DisplayMode.EDIT);
 
     var image_frame = new ContactFrame (PROFILE_SIZE);
-    layout.add_widget_label (image_frame);
+    // Put the frame in a grid so its not expanded by the size-group
+    var ig = new Grid ();
+    ig.add (image_frame);
+    layout.add_widget_label (ig);
     layout.mark_row_stable ();
 
     layout.current_row.set_vexpand (false);



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