mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 00:23:47 +01:00
Initialize GTK+ as late as possible (fixes #471)
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
96597253c8
commit
ba72d40fbd
@ -28,9 +28,6 @@ main(int argc, char* argv[])
|
|||||||
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
||||||
textdomain(GETTEXT_PACKAGE);
|
textdomain(GETTEXT_PACKAGE);
|
||||||
|
|
||||||
/* init gtk */
|
|
||||||
gtk_init(&argc, &argv);
|
|
||||||
|
|
||||||
/* parse command line arguments */
|
/* parse command line arguments */
|
||||||
gchar* config_dir = NULL;
|
gchar* config_dir = NULL;
|
||||||
gchar* data_dir = NULL;
|
gchar* data_dir = NULL;
|
||||||
@ -166,6 +163,9 @@ main(int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* init gtk */
|
||||||
|
gtk_init(&argc, &argv);
|
||||||
|
|
||||||
/* create zathura session */
|
/* create zathura session */
|
||||||
zathura_t* zathura = zathura_create();
|
zathura_t* zathura = zathura_create();
|
||||||
if (zathura == NULL) {
|
if (zathura == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user