mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 08:36:01 +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
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue