[empathy] roster-contact: force the size of the avatar



commit 4e532114814f39740a5695c35fc02b465bbce2e1
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jul 4 14:11:09 2012 +0200

    roster-contact: force the size of the avatar
    
    This ensures that all the contacts are nicely aligned even if they have a
    smaller avatar.

 libempathy-gtk/empathy-roster-contact.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-roster-contact.c b/libempathy-gtk/empathy-roster-contact.c
index 6e2014a..ba498d2 100644
--- a/libempathy-gtk/empathy-roster-contact.c
+++ b/libempathy-gtk/empathy-roster-contact.c
@@ -397,6 +397,8 @@ empathy_roster_contact_init (EmpathyRosterContact *self)
   /* Avatar */
   self->priv->avatar = gtk_image_new ();
 
+  gtk_widget_set_size_request (self->priv->avatar, AVATAR_SIZE, AVATAR_SIZE);
+
   gtk_box_pack_start (GTK_BOX (main_box), self->priv->avatar, FALSE, FALSE, 0);
   gtk_widget_show (self->priv->avatar);
 



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