mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:23:47 +01:00
Require GTK+ 3.6
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
ff976d4854
commit
d7b06ca3fc
@ -26,7 +26,7 @@ GLIB_MIN_VERSION = 2.32
|
||||
GLIB_PKG_CONFIG_NAME = glib-2.0
|
||||
# GTK
|
||||
GTK_VERSION_CHECK ?= 1
|
||||
GTK_MIN_VERSION = 3.0
|
||||
GTK_MIN_VERSION = 3.6
|
||||
GTK_PKG_CONFIG_NAME = gtk+-3.0
|
||||
|
||||
# pkg-config binary
|
||||
|
@ -28,9 +28,6 @@ main(int argc, char* argv[])
|
||||
textdomain(GETTEXT_PACKAGE);
|
||||
|
||||
/* init gtk */
|
||||
#if !GTK_CHECK_VERSION(3, 6, 0)
|
||||
gdk_threads_init();
|
||||
#endif
|
||||
gtk_init(&argc, &argv);
|
||||
|
||||
/* parse command line arguments */
|
||||
@ -282,13 +279,7 @@ main(int argc, char* argv[])
|
||||
}
|
||||
|
||||
/* run zathura */
|
||||
#if !GTK_CHECK_VERSION(3, 6, 0)
|
||||
gdk_threads_enter();
|
||||
#endif
|
||||
gtk_main();
|
||||
#if !GTK_CHECK_VERSION(3, 6, 0)
|
||||
gdk_threads_leave();
|
||||
#endif
|
||||
|
||||
/* free zathura */
|
||||
zathura_free(zathura);
|
||||
|
Loading…
Reference in New Issue
Block a user