aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-25 16:38:38 -0600
committerTed Gould <ted@gould.cx>2010-02-25 16:38:38 -0600
commit8689698b0545046a871730b24ad0eef6414dd990 (patch)
treeb571bd3cf912d7d163a3c642b5db4c1128bd12f3 /src
parent8985b002f45ca55cabf32225c7a483ea36905c86 (diff)
downloadayatana-indicator-session-8689698b0545046a871730b24ad0eef6414dd990.tar.gz
ayatana-indicator-session-8689698b0545046a871730b24ad0eef6414dd990.tar.bz2
ayatana-indicator-session-8689698b0545046a871730b24ad0eef6414dd990.zip
Switching to getting a reply
Diffstat (limited to 'src')
-rw-r--r--src/gtk-dialog/gtk-logout-helper.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/gtk-dialog/gtk-logout-helper.c b/src/gtk-dialog/gtk-logout-helper.c
index 4c6614c..7973bfc 100644
--- a/src/gtk-dialog/gtk-logout-helper.c
+++ b/src/gtk-dialog/gtk-logout-helper.c
@@ -30,6 +30,15 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "gconf-helper.h"
static void
+console_kit_action_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
+{
+ g_return_if_fail(DBUS_IS_G_PROXY(proxy));
+ g_return_if_fail(call != NULL);
+
+
+}
+
+static void
consolekit_fallback (LogoutDialogAction action)
{
DBusGConnection * sbus = dbus_g_bus_get(DBUS_BUS_SYSTEM, NULL);
@@ -48,14 +57,20 @@ consolekit_fallback (LogoutDialogAction action)
g_warning("Unable to fallback to ConsoleKit for logout as it's a session issue. We need some sort of session handler.");
break;
case LOGOUT_DIALOG_SHUTDOWN:
- dbus_g_proxy_call_no_reply(proxy,
- "Stop",
- G_TYPE_INVALID);
+ dbus_g_proxy_begin_call(proxy,
+ "Stop",
+ console_kit_action_cb,
+ NULL, /* data */
+ NULL, /* destroy notifier */
+ G_TYPE_INVALID);
break;
case LOGOUT_DIALOG_RESTART:
- dbus_g_proxy_call_no_reply(proxy,
- "Restart",
- G_TYPE_INVALID);
+ dbus_g_proxy_begin_call(proxy,
+ "Restart",
+ console_kit_action_cb,
+ NULL, /* data */
+ NULL, /* destroy notifier */
+ G_TYPE_INVALID);
break;
default:
g_warning("Unknown action");