[gnome-settings-daemon/wip/benzea/keybindings-grabbing-rework: 50/50] media-keys: Remove ordered registration of keybindings
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/benzea/keybindings-grabbing-rework: 50/50] media-keys: Remove ordered registration of keybindings
- Date: Fri, 22 Mar 2019 15:14:01 +0000 (UTC)
commit 1179e80a3202ed63da67b8ce33f20c61644597a0
Author: Benjamin Berg <bberg redhat com>
Date: Tue Mar 5 11:21:25 2019 +0100
media-keys: Remove ordered registration of keybindings
The registration now happens in random order, so trying to put them into
some order here does not make any difference.
plugins/media-keys/gsd-media-keys-manager.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 549796cf..d6191c60 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -929,16 +929,8 @@ init_kbd (GsdMediaKeysManager *manager)
gnome_settings_profile_start (NULL);
- /* Media keys
- * Add hard-coded shortcuts first so that they can't be preempted */
- for (i = 0; i < G_N_ELEMENTS (media_keys); i++) {
- if (media_keys[i].hard_coded)
- add_key (manager, i);
- }
- for (i = 0; i < G_N_ELEMENTS (media_keys); i++) {
- if (media_keys[i].hard_coded == NULL)
- add_key (manager, i);
- }
+ for (i = 0; i < G_N_ELEMENTS (media_keys); i++)
+ add_key (manager, i);
/* Custom shortcuts */
custom_paths = g_settings_get_strv (priv->settings,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]