summaryrefslogtreecommitdiff
path: root/maximus
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-07-13 00:53:38 +0200
committerZenWalker <[email protected]>2018-07-14 01:19:56 +0200
commitc488e7e0a6849bfc143d317556f857c3d7dd3d96 (patch)
treeac05884e7775298b4630a21ec27767a9287fb7fd /maximus
parent4f78cde6d42897f3a075992cddb19b7ff6031b96 (diff)
downloadmate-netbook-c488e7e0a6849bfc143d317556f857c3d7dd3d96.tar.bz2
mate-netbook-c488e7e0a6849bfc143d317556f857c3d7dd3d96.tar.xz
tomboykeybinder: avoid deprecated 'gdk_keymap_get_default'
Diffstat (limited to 'maximus')
-rw-r--r--maximus/tomboykeybinder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/maximus/tomboykeybinder.c b/maximus/tomboykeybinder.c
index 8607082..261dcb7 100644
--- a/maximus/tomboykeybinder.c
+++ b/maximus/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;
@@ -215,7 +215,7 @@ filter_func (GdkXEvent *gdk_xevent, GdkEvent *event, gpointer data)
static void
keymap_changed (GdkKeymap *map)
{
- 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..."));
@@ -236,7 +236,7 @@ keymap_changed (GdkKeymap *map)
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);