[gdm] Load the default avatar for all items initially



commit 395bfe30d6a4cc8249ec3cdf2d1345ae1ca7ef81
Author: William Jon McCann <jmccann redhat com>
Date:   Tue Jun 8 21:23:04 2010 -0400

    Load the default avatar for all items initially
    
    This allows the rows to size correctly and not have as dramatic
    a change when we dynamically load the icon on visibility changes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621045

 gui/simple-greeter/gdm-user-chooser-widget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index 2fd2a4e..ce5f361 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -454,7 +454,8 @@ add_user (GdmUserChooserWidget *widget,
                 return;
         }
 
-        pixbuf = NULL;
+        pixbuf = g_object_ref (widget->priv->stock_person_pixbuf);
+
         tooltip = g_strdup_printf (_("Log in as %s"),
                                    gdm_user_get_user_name (user));
 



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