[gnome-settings-daemon] smartcard: Use new SessionManager singleton



commit 75c684b7b72acd5cda7841facaf459e4acfeb659
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 22 10:00:39 2012 +0200

    smartcard: Use new SessionManager singleton
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686556

 plugins/smartcard/gsd-smartcard-plugin.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/plugins/smartcard/gsd-smartcard-plugin.c b/plugins/smartcard/gsd-smartcard-plugin.c
index 928ec28..df1a8c8 100644
--- a/plugins/smartcard/gsd-smartcard-plugin.c
+++ b/plugins/smartcard/gsd-smartcard-plugin.c
@@ -28,6 +28,7 @@
 #include <gio/gio.h>
 
 #include "gnome-settings-plugin.h"
+#include "gnome-settings-session.h"
 #include "gsd-smartcard-plugin.h"
 #include "gsd-smartcard-manager.h"
 
@@ -49,9 +50,6 @@ typedef enum
 #define SCREENSAVER_DBUS_PATH      "/"
 #define SCREENSAVER_DBUS_INTERFACE "org.gnome.ScreenSaver"
 
-#define SM_DBUS_NAME      "org.gnome.SessionManager"
-#define SM_DBUS_PATH      "/org/gnome/SessionManager"
-#define SM_DBUS_INTERFACE "org.gnome.SessionManager"
 #define SM_LOGOUT_MODE_FORCE 2
 
 #define KEY_REMOVE_ACTION "removal-action"
@@ -110,12 +108,7 @@ force_logout (GsdSmartcardPlugin *plugin)
         GVariant   *res;
 
         g_debug ("GsdSmartcardPlugin telling session manager to force logout");
-        sm_proxy = g_dbus_proxy_new_sync (plugin->priv->bus_connection,
-                                          0, NULL,
-                                          SM_DBUS_NAME,
-                                          SM_DBUS_PATH,
-                                          SM_DBUS_INTERFACE,
-                                          NULL, NULL);
+        sm_proxy = gnome_settings_session_get_session_proxy ();
 
         error = NULL;
         res = g_dbus_proxy_call_sync (sm_proxy,



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