diff options
author | infirit <[email protected]> | 2014-12-13 17:00:08 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-13 22:47:07 +0100 |
commit | 723f821493aeedac089d1905b3d5487b0968c5b7 (patch) | |
tree | 827aed79da7301d8f90942f449386dd905d8b2a1 /plugins/media-keys/msd-media-keys-manager.c | |
parent | ecd6cb8c49b07e7fe141205c8da677aed1ad3fb1 (diff) | |
download | mate-settings-daemon-723f821493aeedac089d1905b3d5487b0968c5b7.tar.bz2 mate-settings-daemon-723f821493aeedac089d1905b3d5487b0968c5b7.tar.xz |
media-keys: Add support for more multimedia keys
Add support for FastForward, Rewind, Repeat and Shuffle
multimedia keys.
Taken from GSD commits:
338a2db55d96304ebeedcb3e6f87b88ffa3b7828
b4cb0dc3c936336ffba65c50f737cffe9bf79cbe
From: Bastien Nocera <[email protected]>
Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=539915
Diffstat (limited to 'plugins/media-keys/msd-media-keys-manager.c')
-rw-r--r-- | plugins/media-keys/msd-media-keys-manager.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c index 0680818..e37b723 100644 --- a/plugins/media-keys/msd-media-keys-manager.c +++ b/plugins/media-keys/msd-media-keys-manager.c @@ -1000,19 +1000,22 @@ do_action (MsdMediaKeysManager *manager, break; case PLAY_KEY: return do_multimedia_player_action (manager, "Play"); - break; case PAUSE_KEY: return do_multimedia_player_action (manager, "Pause"); - break; case STOP_KEY: return do_multimedia_player_action (manager, "Stop"); - break; case PREVIOUS_KEY: return do_multimedia_player_action (manager, "Previous"); - break; case NEXT_KEY: return do_multimedia_player_action (manager, "Next"); - break; + case REWIND_KEY: + return do_multimedia_player_action (manager, "Rewind"); + case FORWARD_KEY: + return do_multimedia_player_action (manager, "FastForward"); + case REPEAT_KEY: + return do_multimedia_player_action (manager, "Repeat"); + case RANDOM_KEY: + return do_multimedia_player_action (manager, "Shuffle"); case MAGNIFIER_KEY: do_magnifier_action (manager); break; |