summaryrefslogtreecommitdiff
path: root/plugins/media-keys/msd-media-keys-manager.c
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2014-10-06 08:21:19 +0400
committerMonsta <[email protected]>2015-09-28 12:22:34 +0300
commit0902fc2a7b84ce2446bcbba6681d2d8ded17a380 (patch)
treee8106b1c46db6a4a3c6e92d85d027bbc72b911c6 /plugins/media-keys/msd-media-keys-manager.c
parentbf04794b99e7248af922b3a5c95a7446ff6571e9 (diff)
downloadmate-settings-daemon-0902fc2a7b84ce2446bcbba6681d2d8ded17a380.tar.bz2
mate-settings-daemon-0902fc2a7b84ce2446bcbba6681d2d8ded17a380.tar.xz
clarify "power" key bindings logic
historically "power" key bindings calls shutdown dialog but described as logout. this is confuses users. updated "power" key bindings description provided additional "logout" key bindings
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;