[gnome-settings-daemon/gnome-3-8] media-keys: Make the "shutdown" action not be interactive
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-8] media-keys: Make the "shutdown" action not be interactive
- Date: Thu, 7 Nov 2013 16:19:16 +0000 (UTC)
commit fcea8bec0a73ce1f5803a8273f7865d8554bd033
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 2c46d74..cab4aa2 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1791,9 +1791,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]