Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tomboykeybinder: avoid deprecated 'gdk_keymap_get_default'
  • Loading branch information
sc0w committed Jul 13, 2018
1 parent 6a3c896 commit ee6ac63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tomboykeybinder.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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..."));
Expand All @@ -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);
Expand Down

0 comments on commit ee6ac63

Please sign in to comment.