[gnome-builder] main: move possible g_setenv() before calling any gtk API
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] main: move possible g_setenv() before calling any gtk API
- Date: Sat, 18 Feb 2017 19:30:10 +0000 (UTC)
commit 49eb79b22fcefd7dac7bf1eda37e62b0a115f1b5
Author: Christian Hergert <chergert redhat com>
Date: Sat Feb 18 11:29:46 2017 -0800
main: move possible g_setenv() before calling any gtk API
This really needs to be as early as possible, and that is somewhat
difficult given that the GLib DBus worker thread could have already
been started.
src/main.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 71fd1f4..416abeb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -90,16 +90,15 @@ main (int argc,
int ret;
ide_log_init (TRUE, NULL);
-
early_verbose_check (&argc, &argv);
+ early_ssl_check ();
+
g_message ("Initializing with Gtk+ version %d.%d.%d.",
gtk_get_major_version (),
gtk_get_minor_version (),
gtk_get_micro_version ());
- early_ssl_check ();
-
app = ide_application_new ();
ret = g_application_run (G_APPLICATION (app), argc, argv);
g_clear_object (&app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]