diff options
author | Ted Gould <ted@gould.cx> | 2010-02-24 11:39:50 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-24 11:39:50 -0600 |
commit | 8985b002f45ca55cabf32225c7a483ea36905c86 (patch) | |
tree | 90783afa3e3152d971dbaa0671d2dad10d9035ab | |
parent | 02ab93a720729796e63b66a521edd647c26182cb (diff) | |
download | ayatana-indicator-session-8985b002f45ca55cabf32225c7a483ea36905c86.tar.gz ayatana-indicator-session-8985b002f45ca55cabf32225c7a483ea36905c86.tar.bz2 ayatana-indicator-session-8985b002f45ca55cabf32225c7a483ea36905c86.zip |
Adding in shutdown and restart
-rw-r--r-- | src/gtk-dialog/gtk-logout-helper.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gtk-dialog/gtk-logout-helper.c b/src/gtk-dialog/gtk-logout-helper.c index 29f0add..4c6614c 100644 --- a/src/gtk-dialog/gtk-logout-helper.c +++ b/src/gtk-dialog/gtk-logout-helper.c @@ -44,16 +44,27 @@ consolekit_fallback (LogoutDialogAction action) } switch (action) { - case LOGOUT_DIALOG_LOGOUT: { + case LOGOUT_DIALOG_LOGOUT: 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); + break; + case LOGOUT_DIALOG_RESTART: + dbus_g_proxy_call_no_reply(proxy, + "Restart", + G_TYPE_INVALID); + break; default: g_warning("Unknown action"); break; } g_object_unref(proxy); + + return; } static void |