[nautilus] application: call gtk_init() manually when doing self checks



commit 685d149e09470b4acf58024e82b461e52079a9ed
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Oct 15 11:13:46 2012 -0400

    application: call gtk_init() manually when doing self checks
    
    We used to do this implicitly, but
    6b5ffd4e8841202d31e444358b542ffbeac516bf made it necessary to call it
    manually, since we avoid g_application_register() when we perform self
    checks.

 src/nautilus-application.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 4038e90..4ae2264 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1033,6 +1033,8 @@ static void
 do_perform_self_checks (gint *exit_status)
 {
 #ifndef NAUTILUS_OMIT_SELF_CHECK
+	gtk_init (NULL, NULL);
+
 	nautilus_profile_start (NULL);
 	/* Run the checks (each twice) for nautilus and libnautilus-private. */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]