[gnome-session] Use gsm_manager_get instead of gsm_manager_new to get the manager



commit 13803738bd514553eb86919979fb69e09ddf68c8
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Feb 16 17:21:29 2011 +0100

    Use gsm_manager_get instead of gsm_manager_new to get the manager

 gnome-session/gsm-autostart-app.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-session/gsm-autostart-app.c b/gnome-session/gsm-autostart-app.c
index 7a54403..81e66ce 100644
--- a/gnome-session/gsm-autostart-app.c
+++ b/gnome-session/gsm-autostart-app.c
@@ -540,7 +540,7 @@ setup_condition_monitor (GsmAutostartApp *app)
                 char *session_name;
 
                 /* get the singleton */
-                manager = gsm_manager_new (NULL, FALSE);
+                manager = gsm_manager_get ();
 
                 g_object_get (manager, "session-name", &session_name, NULL);
                 disabled = strcmp (session_name, key) != 0;
@@ -555,7 +555,7 @@ setup_condition_monitor (GsmAutostartApp *app)
                 char *session_name;
 
                 /* get the singleton */
-                manager = gsm_manager_new (NULL, FALSE);
+                manager = gsm_manager_get ();
 
                 g_object_get (manager, "session-name", &session_name, NULL);
                 disabled = strcmp (session_name, key) == 0;
@@ -864,7 +864,7 @@ is_conditionally_disabled (GsmApp *app)
                 char *session_name;
 
                 /* get the singleton */
-                manager = gsm_manager_new (NULL, FALSE);
+                manager = gsm_manager_get ();
 
                 g_object_get (manager, "session-name", &session_name, NULL);
                 disabled = strcmp (session_name, key) != 0;
@@ -876,7 +876,7 @@ is_conditionally_disabled (GsmApp *app)
                 char *session_name;
 
                 /* get the singleton */
-                manager = gsm_manager_new (NULL, FALSE);
+                manager = gsm_manager_get ();
 
                 g_object_get (manager, "session-name", &session_name, NULL);
                 disabled = strcmp (session_name, key) == 0;



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