[gnome-settings-daemon/wip/benzea/multiple-keybindings: 11/11] media-keys: Remove KEY_SLEEP as it was merged into KEY_HIBERNATE



commit 7da3007d64073f7d84ebd65e0c3ab58a807f9850
Author: Benjamin Berg <bberg redhat com>
Date:   Mon May 13 22:17:13 2019 +0200

    media-keys: Remove KEY_SLEEP as it was merged into KEY_HIBERNATE
    
    The actions were identical and both mappings were stored into the same
    setting.

 plugins/media-keys/gsd-media-keys-manager.c | 3 ---
 plugins/media-keys/media-keys.h             | 1 -
 2 files changed, 4 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 0d6a49ee..062c3d6d 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -2710,9 +2710,6 @@ do_action (GsdMediaKeysManager *manager,
         case POWER_KEY:
                 do_config_power_button_action (manager, power_action_noninteractive);
                 break;
-        case SLEEP_KEY:
-                do_config_power_action (manager, GSD_POWER_ACTION_HIBERNATE, power_action_noninteractive);
-                break;
         case SUSPEND_KEY:
                 do_config_power_action (manager, GSD_POWER_ACTION_SUSPEND, power_action_noninteractive);
                 break;
diff --git a/plugins/media-keys/media-keys.h b/plugins/media-keys/media-keys.h
index 15ce9ff2..cc4ea8e7 100644
--- a/plugins/media-keys/media-keys.h
+++ b/plugins/media-keys/media-keys.h
@@ -69,7 +69,6 @@ typedef enum {
         MAGNIFIER_ZOOM_IN_KEY,
         MAGNIFIER_ZOOM_OUT_KEY,
         POWER_KEY,
-        SLEEP_KEY,
         SUSPEND_KEY,
         HIBERNATE_KEY,
         SCREEN_BRIGHTNESS_UP_KEY,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]