[gdm] Don't emit loaded from the chooser until the first patch of users are
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Don't emit loaded from the chooser until the first patch of users are
- Date: Fri, 11 Jun 2010 00:21:36 +0000 (UTC)
commit 56fdc31b94a466bd672caa13548e8ba544cc571d
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 e50e269..f6d8fda 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]