[gnome-settings-daemon/gnome-3-10] media-keys: Make the "shutdown" action not be interactive



commit cc392177c4fdf5a35baa0cbbb277038dc9606f1e
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Oct 20 00:01:49 2013 +0200

    media-keys: Make the "shutdown" action not be interactive
    
    Shutdown is supposed to shutdown without asking, as "interactive"
    already should do what we need for interactive shutdowns.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698733

 plugins/media-keys/gsd-media-keys-manager.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 9f8bd35..6a43f3d 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1832,9 +1832,11 @@ do_config_power_action (GsdMediaKeysManager *manager,
                 power_action (manager, "Suspend");
                 break;
         case GSD_POWER_ACTION_INTERACTIVE:
-        case GSD_POWER_ACTION_SHUTDOWN:
                 gnome_session_shutdown (manager);
                 break;
+        case GSD_POWER_ACTION_SHUTDOWN:
+                power_action (manager, "PowerOff");
+                break;
         case GSD_POWER_ACTION_HIBERNATE:
                 power_action (manager, "Hibernate");
                 break;


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