show shutdown dialog when power button is pressed

This commit is contained in:
Matthias Clasen 2008-10-14 18:35:03 +00:00
parent 9741231ded
commit 5096421001
2 changed files with 20 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: gnome-settings-daemon
Version: 2.24.0
Release: 9%{?dist}
Release: 10%{?dist}
Summary: The daemon sharing settings from GNOME to GTK+/KDE applications
Group: System Environment/Daemons
@ -40,6 +40,9 @@ Patch8: gnome-settings-daemon-2.24.0-fade.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=555873
Patch9: fix-gdm-layout.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=556307
Patch10: power-button.patch
%description
A daemon to share settings from GNOME to other applications. It also
handles global keybindings, as well as a number of desktop-wide settings.
@ -62,6 +65,7 @@ developing applications that use %{name}.
%patch7 -p1 -b .fnf7-cycle
%patch8 -p1 -b .fade
%patch9 -p1 -b .fix-gdm-layout
%patch1o -p1 -b .power-button
%build
aclocal
@ -161,6 +165,9 @@ fi
%{_libdir}/pkgconfig/gnome-settings-daemon.pc
%changelog
* Tue Oct 14 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-10
- Show the shutdown dialog when the power button is pressed
* Tue Oct 14 2008 Matthias Clasen <mclasen@redhat.com> - 2.24.0-9
- Drop a patch that is no longer needed with the evdev ruleset
in xkeyboard-config

12
power-button.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up gnome-settings-daemon-2.24.0/plugins/media-keys/gsd-media-keys-manager.c.power-button gnome-settings-daemon-2.24.0/plugins/media-keys/gsd-media-keys-manager.c
--- gnome-settings-daemon-2.24.0/plugins/media-keys/gsd-media-keys-manager.c.power-button 2008-10-14 14:28:35.000000000 -0400
+++ gnome-settings-daemon-2.24.0/plugins/media-keys/gsd-media-keys-manager.c 2008-10-14 14:29:19.000000000 -0400
@@ -556,7 +556,7 @@ do_www_action (GsdMediaKeysManager *mana
static void
do_exit_action (GsdMediaKeysManager *manager)
{
- execute (manager, "gnome-session-save --kill", FALSE, FALSE);
+ execute (manager, "gnome-session-save --shutdown-dialog", FALSE, FALSE);
}
static void