Skip to content
Snippets Groups Projects
Commit c3c7a9ec authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

panel: Call gtk_init() early enough

Fixes: 3e59a4e4
parent 6185d3d9
No related branches found
No related tags found
No related merge requests found
Pipeline #25763 passed
...@@ -274,6 +274,9 @@ main (gint argc, gchar **argv) ...@@ -274,6 +274,9 @@ main (gint argc, gchar **argv)
g_setenv ("GDK_CORE_DEVICE_EVENTS", "1", TRUE); g_setenv ("GDK_CORE_DEVICE_EVENTS", "1", TRUE);
/* we need to do this right now to be able to determine the windowing system used below */
gtk_init (&argc, &argv);
/* parse context options */ /* parse context options */
context = g_option_context_new (_("[ARGUMENTS...]")); context = g_option_context_new (_("[ARGUMENTS...]"));
g_option_context_add_main_entries (context, option_entries, GETTEXT_PACKAGE); g_option_context_add_main_entries (context, option_entries, GETTEXT_PACKAGE);
...@@ -293,8 +296,6 @@ main (gint argc, gchar **argv) ...@@ -293,8 +296,6 @@ main (gint argc, gchar **argv)
} }
g_option_context_free (context); g_option_context_free (context);
gtk_init (&argc, &argv);
if (opt_version) if (opt_version)
{ {
/* print version information */ /* print version information */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment