media-keys: Make power-actions non-interactive based on mode

Desktop / GNOME / GNOME Settings Daemon - Florian Müllner [gnome.org] - 5 January 2015 18:36 EST

gnome-shell does not allow to grab any particular key combo more than once, even when the corresponding keybinding modes don't overlap, so the FOO_KEY_NO_DIALOG shortcuts introduced in commit b7827c13d823 never actually worked. Instead, use the new 'action-mode' parameter that was added to the 'Activated' signal to determine whether to a power action should be interactive or not.

https://bugzilla.gnome.org/show_bug.cgi?id=741762

8d41708 media-keys: Make power-actions non-interactive based on mode
plugins/media-keys/gsd-media-keys-manager.c | 28 +++++++++++----------------
plugins/media-keys/media-keys.h | 4 ----
plugins/media-keys/shortcuts-list.h | 13 ++++---------
3 files changed, 15 insertions(+), 30 deletions(-)

Upstream: git.gnome.org


  • Share