Remove calls to deprecated GLib functions.

GLib 2.32 (released in March 2012) deprecated `g_atexit()` [1] and
`g_thread_init()` [2].

[1]: https://developer.gnome.org/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-atexit
[2]: https://developer.gnome.org/glib/stable/glib-Threads.html
This commit is contained in:
Johannes Maibaum 2016-09-11 18:24:32 +02:00
parent bb80fe24b2
commit 0941f4abaa

View File

@ -1131,8 +1131,6 @@ grab_keyboard(void)
return;
}
g_atexit(ungrab_keyboard);
gdk_window_add_filter(NULL, keyboard_grab_filter, NULL);
}
@ -1715,11 +1713,6 @@ main(int argc, char *argv[])
#ifdef HAVE_LASH
lash_args_t *lash_args;
#endif
g_thread_init(NULL);
#ifdef HAVE_LASH
lash_args = lash_extract_args(&argc, &argv);
#endif
@ -1872,6 +1865,9 @@ main(int argc, char *argv[])
gtk_main();
if (keyboard_grabbed)
ungrab_keyboard();
return (0);
}