summaryrefslogtreecommitdiff
path: root/plugins/media-keys/msd-media-keys-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/media-keys/msd-media-keys-manager.c')
-rw-r--r--plugins/media-keys/msd-media-keys-manager.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c
index 95ef52a..9ae91be 100644
--- a/plugins/media-keys/msd-media-keys-manager.c
+++ b/plugins/media-keys/msd-media-keys-manager.c
@@ -499,12 +499,18 @@ do_media_action (MsdMediaKeysManager *manager)
}
static void
-do_exit_action (MsdMediaKeysManager *manager)
+do_shutdown_action (MsdMediaKeysManager *manager)
{
execute (manager, "mate-session-save --shutdown-dialog", FALSE, FALSE);
}
static void
+do_logout_action (MsdMediaKeysManager *manager)
+{
+ execute (manager, "mate-session-save --logout-dialog", FALSE, FALSE);
+}
+
+static void
do_eject_action_cb (GDrive *drive,
GAsyncResult *res,
MsdMediaKeysManager *manager)
@@ -923,8 +929,11 @@ do_action (MsdMediaKeysManager *manager,
#endif
break;
case POWER_KEY:
- do_exit_action (manager);
+ do_shutdown_action (manager);
break;
+ case LOGOUT_KEY:
+ do_logout_action (manager);
+ break;
case EJECT_KEY:
do_eject_action (manager);
break;