summaryrefslogtreecommitdiff
path: root/plugins/common/eggaccelerators.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-07-13 01:03:15 +0200
committerPablo Barciela <[email protected]>2018-07-13 01:03:15 +0200
commit3fe98d7d01238bfacd793110b4b2c8b9a8d93609 (patch)
tree836e458ae732c18d7ec48801c327689f1653af62 /plugins/common/eggaccelerators.c
parentb264cffba61776d0fa87754400f8baf83d15f5a0 (diff)
downloadmate-settings-daemon-3fe98d7d01238bfacd793110b4b2c8b9a8d93609.tar.bz2
mate-settings-daemon-3fe98d7d01238bfacd793110b4b2c8b9a8d93609.tar.xz
plugins: avoid deprecated 'gdk_keymap_get_default'
Diffstat (limited to 'plugins/common/eggaccelerators.c')
-rw-r--r--plugins/common/eggaccelerators.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/common/eggaccelerators.c b/plugins/common/eggaccelerators.c
index 0b32887..9662a3f 100644
--- a/plugins/common/eggaccelerators.c
+++ b/plugins/common/eggaccelerators.c
@@ -387,7 +387,7 @@ egg_accelerator_parse_virtual (const gchar *accelerator,
GdkKeymapKey *keys;
gint n_keys, i, j;
- if (!gdk_keymap_get_entries_for_keyval (gdk_keymap_get_default(), keyval, &keys, &n_keys)) {
+ if (!gdk_keymap_get_entries_for_keyval (gdk_keymap_get_for_display (gdk_display_get_default ()), keyval, &keys, &n_keys)) {
bad_keyval = TRUE;
} else {
*accelerator_codes = g_new0 (guint, n_keys + 1);
@@ -647,7 +647,7 @@ egg_keymap_get_modmap (GdkKeymap *keymap)
EggModmap *modmap;
if (keymap == NULL)
- keymap = gdk_keymap_get_default ();
+ keymap = gdk_keymap_get_for_display (gdk_display_get_default ());
/* This is all a hack, much simpler when we can just
* modify GDK directly.