Commit ba72d40f authored by Sebastian Ramacher's avatar Sebastian Ramacher

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

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 96597253
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment