[gdm] manager: move initial login handling to function
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] manager: move initial login handling to function
- Date: Fri, 20 Mar 2015 00:28:49 +0000 (UTC)
commit 63b0ce137248fb210b22227bb85956540e02bae3
Author: Ray Strode <rstrode redhat com>
Date: Tue Mar 17 13:46:21 2015 -0400
manager: move initial login handling to function
After the greeter is started, we may start any pending initial-setup
login from the user. Right now we do that directly from
on_display_status_changed.
This commit moves the code off to a subroutine, since it's only going
to get more complicated in the future.
https://bugzilla.gnome.org/show_bug.cgi?id=746492
daemon/gdm-manager.c | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index a0a95f3..902810b 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1680,6 +1680,19 @@ set_up_greeter_session (GdmManager *manager,
}
static void
+greeter_display_started (GdmManager *manager,
+ GdmDisplay *display)
+{
+ if (manager->priv->ran_once) {
+ return;
+ }
+
+ maybe_start_pending_initial_login (manager, display);
+
+ manager->priv->ran_once = TRUE;
+}
+
+static void
on_display_status_changed (GdmDisplay *display,
GParamSpec *arg1,
GdmManager *manager)
@@ -1729,9 +1742,7 @@ on_display_status_changed (GdmDisplay *display,
manager->priv->plymouth_is_running = FALSE;
}
#endif
- maybe_start_pending_initial_login (manager, display);
-
- manager->priv->ran_once = TRUE;
+ greeter_display_started (manager, display);
}
break;
case GDM_DISPLAY_FAILED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]