aboutsummaryrefslogtreecommitdiff
path: root/src/gtk-dialog
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtk-dialog')
-rw-r--r--src/gtk-dialog/gtk-logout-helper.c15
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