[gdm] daemon: create user settings object in worker early



commit c85b2903013d41d8e7f2f27ced8149ead90485df
Author: Ray Strode <rstrode redhat com>
Date:   Tue Mar 8 14:59:18 2011 -0500

    daemon: create user settings object in worker early
    
    This will give us the opportunity to use it from setup
    code.

 daemon/gdm-session-worker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 137b69d..346527c 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1984,8 +1984,6 @@ do_setup (GdmSessionWorker *worker)
         GError  *error;
         gboolean res;
 
-        worker->priv->user_settings = gdm_session_settings_new ();
-
         g_signal_connect_swapped (worker->priv->user_settings,
                                   "notify::language-name",
                                   G_CALLBACK (on_saved_language_name_read),
@@ -2656,6 +2654,8 @@ gdm_session_worker_init (GdmSessionWorker *worker)
 {
 
         worker->priv = GDM_SESSION_WORKER_GET_PRIVATE (worker);
+
+        worker->priv->user_settings = gdm_session_settings_new ();
 }
 
 static void



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