summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-07-13 00:58:16 +0200
committerZenWalker <[email protected]>2018-07-14 01:19:05 +0200
commitee6ac63a63a60fc5ea1b99b6c0ce218df95d4180 (patch)
tree2991da4acc403991a33a7c93025bba0f402a33c9
parent6a3c896374f2d40a26295f211ba9c5b9cac587e6 (diff)
downloadmate-indicator-applet-ee6ac63a63a60fc5ea1b99b6c0ce218df95d4180.tar.bz2
mate-indicator-applet-ee6ac63a63a60fc5ea1b99b6c0ce218df95d4180.tar.xz
tomboykeybinder: avoid deprecated 'gdk_keymap_get_default'
-rw-r--r--src/tomboykeybinder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tomboykeybinder.c b/src/tomboykeybinder.c
index 870d536..782531a 100644
--- a/src/tomboykeybinder.c
+++ b/src/tomboykeybinder.c
@@ -102,7 +102,7 @@ grab_ungrab_with_ignorable_modifiers (GdkWindow *rootwin,
static gboolean
do_grab_key (Binding *binding)
{
- GdkKeymap *keymap = gdk_keymap_get_default ();
+ GdkKeymap *keymap = gdk_keymap_get_for_display (gdk_display_get_default ());
GdkWindow *rootwin = gdk_get_default_root_window ();
EggVirtualModifierType virtual_mods = 0;
@@ -218,7 +218,7 @@ filter_func (GdkXEvent *gdk_xevent, GdkEvent *event G_GNUC_UNUSED,
static void
keymap_changed (GdkKeymap *map G_GNUC_UNUSED)
{
- GdkKeymap *keymap = gdk_keymap_get_default ();
+ GdkKeymap *keymap = gdk_keymap_get_for_display (gdk_display_get_default ());
GSList *iter;
TRACE (g_print ("Keymap changed! Regrabbing keys..."));
@@ -239,7 +239,7 @@ keymap_changed (GdkKeymap *map G_GNUC_UNUSED)
void
tomboy_keybinder_init (void)
{
- GdkKeymap *keymap = gdk_keymap_get_default ();
+ GdkKeymap *keymap = gdk_keymap_get_for_display (gdk_display_get_default ());
GdkWindow *rootwin = gdk_get_default_root_window ();
lookup_ignorable_modifiers (keymap);