]> git.0d.be Git - empathy.git/commitdiff
roster-contact: force the size of the avatar
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 4 Jul 2012 12:11:09 +0000 (14:11 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 4 Jul 2012 12:11:09 +0000 (14:11 +0200)
This ensures that all the contacts are nicely aligned even if they have a
smaller avatar.

libempathy-gtk/empathy-roster-contact.c

index 6e2014aaf79c4d9210d3ed8b2fbe989c96df81c9..ba498d289688b1dcc1df1d2f13c446f133a3e1ec 100644 (file)
@@ -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);