[gedit/wip/gtkapp: 26/38] Move debugging init to startup



commit 24a0294a0b8848a8b52b7b81a3c2bb018f2ab1b3
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Jul 31 15:28:26 2012 +0200

    Move debugging init to startup

 gedit/gedit-app.c |    4 ++++
 gedit/gedit.c     |    4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index a9d170a..aa2fdc7 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -365,6 +365,10 @@ gedit_app_startup (GApplication *application)
 
 	G_APPLICATION_CLASS (gedit_app_parent_class)->startup (application);
 
+	/* Setup debugging */
+	gedit_debug_init ();
+	gedit_debug_message (DEBUG_APP, "Startup");
+
 	gedit_dirs_init ();
 
 	gedit_debug_message (DEBUG_APP, "Set icon");
diff --git a/gedit/gedit.c b/gedit/gedit.c
index 0976282..86386f5 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -61,10 +61,6 @@ main (int argc, char *argv[])
 	gchar *metadata_filename;
 #endif
 
-	/* Setup debugging */
-	gedit_debug_init ();
-	gedit_debug_message (DEBUG_APP, "Startup");
-
 	/* Setup locale/gettext */
 	setlocale (LC_ALL, "");
 



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