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