Initialize GTK+ as late as possible (fixes #471)

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2015-11-24 00:04:45 +01:00
parent 96597253c8
commit ba72d40fbd

View file

@ -28,9 +28,6 @@ main(int argc, char* argv[])
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
/* init gtk */
gtk_init(&argc, &argv);
/* parse command line arguments */
gchar* config_dir = NULL;
gchar* data_dir = NULL;
@ -166,6 +163,9 @@ main(int argc, char* argv[])
}
}
/* init gtk */
gtk_init(&argc, &argv);
/* create zathura session */
zathura_t* zathura = zathura_create();
if (zathura == NULL) {