gimp r24922 - in trunk: . app app/core app/gui



Author: neo
Date: Tue Feb 19 13:38:24 2008
New Revision: 24922
URL: http://svn.gnome.org/viewvc/gimp?rev=24922&view=rev

Log:
2008-02-19  Sven Neumann  <sven gimp org>

	* app/app.c
	* app/batch.c
	* app/core/gimp.c
	* app/gui/gui.c: use G_STRLOC instead of hardcoding the function
	name in verbose output.


Modified:
   trunk/ChangeLog
   trunk/app/app.c
   trunk/app/batch.c
   trunk/app/core/gimp.c
   trunk/app/gui/gui.c

Modified: trunk/app/app.c
==============================================================================
--- trunk/app/app.c	(original)
+++ trunk/app/app.c	Tue Feb 19 13:38:24 2008
@@ -273,7 +273,7 @@
                          GMainLoop *loop)
 {
   if (gimp->be_verbose)
-    g_print ("EXIT: app_exit_after_callback\n");
+    g_print ("EXIT: %s\n", G_STRFUNC);
 
   /*
    *  In stable releases, we simply call exit() here. This speeds up

Modified: trunk/app/batch.c
==============================================================================
--- trunk/app/batch.c	(original)
+++ trunk/app/batch.c	Tue Feb 19 13:38:24 2008
@@ -127,7 +127,7 @@
 batch_exit_after_callback (Gimp *gimp)
 {
   if (gimp->be_verbose)
-    g_print ("EXIT: batch_exit_after_callback\n");
+    g_print ("EXIT: %s\n", G_STRFUNC);
 
   gegl_exit ();
 

Modified: trunk/app/core/gimp.c
==============================================================================
--- trunk/app/core/gimp.c	(original)
+++ trunk/app/core/gimp.c	Tue Feb 19 13:38:24 2008
@@ -255,7 +255,7 @@
   Gimp *gimp = GIMP (object);
 
   if (gimp->be_verbose)
-    g_print ("EXIT: gimp_dispose\n");
+    g_print ("EXIT: %s\n", G_STRFUNC);
 
   if (gimp->brush_factory)
     gimp_data_factory_data_free (gimp->brush_factory);
@@ -278,7 +278,7 @@
   Gimp *gimp = GIMP (object);
 
   if (gimp->be_verbose)
-    g_print ("EXIT: gimp_finalize\n");
+    g_print ("EXIT: %s\n", G_STRFUNC);
 
   gimp_contexts_exit (gimp);
 
@@ -523,7 +523,7 @@
   GimpData *clipboard_pattern;
 
   if (gimp->be_verbose)
-    g_print ("INIT: gimp_real_initialize\n");
+    g_print ("INIT: %s\n", G_STRFUNC);
 
   status_callback (_("Initialization"), NULL, 0.0);
 
@@ -614,7 +614,7 @@
                    GimpInitStatusFunc  status_callback)
 {
   if (gimp->be_verbose)
-    g_print ("INIT: gimp_real_restore\n");
+    g_print ("INIT: %s\n", G_STRFUNC);
 
   gimp_plug_in_manager_restore (gimp->plug_in_manager,
                                 gimp_get_user_context (gimp), status_callback);
@@ -627,7 +627,7 @@
   GError *error = NULL;
 
   if (gimp->be_verbose)
-    g_print ("EXIT: gimp_real_exit\n");
+    g_print ("EXIT: %s\n", G_STRFUNC);
 
   gimp_plug_in_manager_exit (gimp->plug_in_manager);
   gimp_modules_unload (gimp);
@@ -775,7 +775,7 @@
   g_return_if_fail (gimp->edit_config == NULL);
 
   if (gimp->be_verbose)
-    g_print ("INIT: gimp_load_config\n");
+    g_print ("INIT: %s\n", G_STRFUNC);
 
   /*  this needs to be done before gimprc loading because gimprc can
    *  use user defined units
@@ -807,7 +807,7 @@
   g_return_if_fail (GIMP_IS_CORE_CONFIG (gimp->config));
 
   if (gimp->be_verbose)
-    g_print ("INIT: gimp_initialize\n");
+    g_print ("INIT: %s\n", G_STRFUNC);
 
   g_signal_emit (gimp, gimp_signals[INITIALIZE], 0, status_callback);
 }
@@ -822,7 +822,7 @@
   g_return_if_fail (status_callback != NULL);
 
   if (gimp->be_verbose)
-    g_print ("INIT: gimp_restore\n");
+    g_print ("INIT: %s\n", G_STRFUNC);
 
   /*  initialize  the global parasite table  */
   status_callback (_("Looking for data files"), _("Parasites"), 0.0);
@@ -885,7 +885,7 @@
   g_return_if_fail (GIMP_IS_GIMP (gimp));
 
   if (gimp->be_verbose)
-    g_print ("EXIT: gimp_exit\n");
+    g_print ("EXIT: %s\n", G_STRFUNC);
 
   g_signal_emit (gimp, gimp_signals[EXIT], 0,
                  force ? TRUE : FALSE,

Modified: trunk/app/gui/gui.c
==============================================================================
--- trunk/app/gui/gui.c	(original)
+++ trunk/app/gui/gui.c	Tue Feb 19 13:38:24 2008
@@ -338,7 +338,7 @@
   g_return_if_fail (GIMP_IS_GIMP (gimp));
 
   if (gimp->be_verbose)
-    g_print ("INIT: gui_initialize_after_callback\n");
+    g_print ("INIT: %s\n", G_STRFUNC);
 
 #if defined (GDK_WINDOWING_X11)
   name = "DISPLAY";
@@ -372,7 +372,7 @@
   GimpGuiConfig     *gui_config     = GIMP_GUI_CONFIG (gimp->config);
 
   if (gimp->be_verbose)
-    g_print ("INIT: gui_restore_callback\n");
+    g_print ("INIT: %s\n", G_STRFUNC);
 
   gui_vtable_init (gimp);
 
@@ -447,7 +447,7 @@
   GimpGuiConfig *gui_config = GIMP_GUI_CONFIG (gimp->config);
 
   if (gimp->be_verbose)
-    g_print ("INIT: gui_restore_after_callback\n");
+    g_print ("INIT: %s\n", G_STRFUNC);
 
   gimp->message_handler = GIMP_MESSAGE_BOX;
 
@@ -540,7 +540,7 @@
   GimpGuiConfig  *gui_config = GIMP_GUI_CONFIG (gimp->config);
 
   if (gimp->be_verbose)
-    g_print ("EXIT: gui_exit_callback\n");
+    g_print ("EXIT: %s\n", G_STRFUNC);
 
   if (! force && gimp_displays_dirty (gimp))
     {
@@ -591,7 +591,7 @@
                          gboolean  force)
 {
   if (gimp->be_verbose)
-    g_print ("EXIT: gui_exit_after_callback\n");
+    g_print ("EXIT: %s\n", G_STRFUNC);
 
   g_signal_handlers_disconnect_by_func (gimp->config,
                                         gui_show_help_button_notify,



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