[gdm] Make update_item_for_user a no-op if user unloaded



commit f274e6bdc79d4b620b62a3aca120426bb24f3977
Author: Ray Strode <rstrode redhat com>
Date:   Mon Sep 13 10:21:57 2010 -0400

    Make update_item_for_user a no-op if user unloaded

 gui/simple-greeter/gdm-user-chooser-widget.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index 5aa2cfa..4a79c58 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -185,6 +185,9 @@ update_item_for_user (GdmUserChooserWidget *widget,
         char         *escaped_username;
         char         *escaped_real_name;
 
+        if (!gdm_user_is_loaded (user)) {
+                return;
+        }
 
         size = get_icon_height_for_widget (GTK_WIDGET (widget));
         pixbuf = gdm_user_render_icon (user, size);



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