[gdm/gnome-2-30] Don't emit loaded from the chooser until the first patch of users are



commit 34656736978307c82a1a704e7b5bed9dfe69f6b8
Author: William Jon McCann <jmccann redhat com>
Date:   Thu Jun 10 16:06:43 2010 -0400

    Don't emit loaded from the chooser until the first patch of users are

 gui/simple-greeter/gdm-user-chooser-widget.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index 12cb03e..4be8993 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -566,6 +566,12 @@ add_users (GdmUserChooserWidget *widget)
         }
         g_debug ("GdmUserChooserWidget: added %u items", cnt);
 
+        if (! widget->priv->loaded) {
+                widget->priv->loaded = TRUE;
+
+                gdm_chooser_widget_loaded (GDM_CHOOSER_WIDGET (widget));
+        }
+
         return (widget->priv->users_to_add != NULL);
 }
 
@@ -600,9 +606,6 @@ on_is_loaded_changed (GdmUserManager       *manager,
         if (list_visible) {
                 gtk_widget_grab_focus (GTK_WIDGET (widget));
         }
-        widget->priv->loaded = TRUE;
-
-        gdm_chooser_widget_loaded (GDM_CHOOSER_WIDGET (widget));
 }
 
 static void



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