gimp r25605 - in trunk: . app app/plug-in



Author: mitch
Date: Sat May 10 10:15:49 2008
New Revision: 25605
URL: http://svn.gnome.org/viewvc/gimp?rev=25605&view=rev

Log:
2008-05-10  Michael Natterer  <mitch gimp org>

	* app/gimp-log.[ch]: add SHADOW_TILES log domain.

	* app/plug-in/gimpplugin-cleanup.c (gimp_plug_in_cleanup_item):
	turn commented-out g_printerr() into a GIMP_LOG()



Modified:
   trunk/ChangeLog
   trunk/app/gimp-log.c
   trunk/app/gimp-log.h
   trunk/app/plug-in/gimpplugin-cleanup.c

Modified: trunk/app/gimp-log.c
==============================================================================
--- trunk/app/gimp-log.c	(original)
+++ trunk/app/gimp-log.c	Sat May 10 10:15:49 2008
@@ -42,7 +42,8 @@
         { "dialog-factory", GIMP_LOG_DIALOG_FACTORY },
         { "menus",          GIMP_LOG_MENUS          },
         { "save-dialog",    GIMP_LOG_SAVE_DIALOG    },
-        { "image-scale",    GIMP_LOG_IMAGE_SCALE    }
+        { "image-scale",    GIMP_LOG_IMAGE_SCALE    },
+        { "shadow-tiles",   GIMP_LOG_SHADOW_TILES   }
       };
 
       gimp_log_flags = g_parse_debug_string (env_log_val,

Modified: trunk/app/gimp-log.h
==============================================================================
--- trunk/app/gimp-log.h	(original)
+++ trunk/app/gimp-log.h	Sat May 10 10:15:49 2008
@@ -29,7 +29,8 @@
   GIMP_LOG_DIALOG_FACTORY = 1 << 4,
   GIMP_LOG_MENUS          = 1 << 5,
   GIMP_LOG_SAVE_DIALOG    = 1 << 6,
-  GIMP_LOG_IMAGE_SCALE    = 1 << 7
+  GIMP_LOG_IMAGE_SCALE    = 1 << 7,
+  GIMP_LOG_SHADOW_TILES   = 1 << 8
 } GimpLogFlags;
 
 
@@ -78,6 +79,7 @@
 #define MENUS          GIMP_LOG_MENUS
 #define SAVE_DIALOG    GIMP_LOG_SAVE_DIALOG
 #define IMAGE_SCALE    GIMP_LOG_IMAGE_SCALE
+#define SHADOW_TILES   GIMP_LOG_SHADOW_TILES
 
 #if 0 /* last resort */
 #  define GIMP_LOG /* nothing => no varargs, no log */

Modified: trunk/app/plug-in/gimpplugin-cleanup.c
==============================================================================
--- trunk/app/plug-in/gimpplugin-cleanup.c	(original)
+++ trunk/app/plug-in/gimpplugin-cleanup.c	Sat May 10 10:15:49 2008
@@ -37,6 +37,8 @@
 #include "gimppluginmanager.h"
 #include "gimppluginprocedure.h"
 
+#include "gimp-log.h"
+
 
 typedef struct _GimpPlugInCleanupImage GimpPlugInCleanupImage;
 
@@ -334,13 +336,12 @@
 
   if (cleanup->shadow_tiles)
     {
-#if 0
       GimpProcedure *proc = proc_frame->procedure;
 
-      g_printerr ("Plug-In '%s' didn't free shadow tiles of drawable '%s'.\n",
-                  gimp_plug_in_procedure_get_label (GIMP_PLUG_IN_PROCEDURE (proc)),
-                  gimp_object_get_name (GIMP_OBJECT (item)));
-#endif
+      GIMP_LOG (SHADOW_TILES,
+                "Freeing shadow tiles of drawable '%s' on behalf of '%s'.",
+                gimp_object_get_name (GIMP_OBJECT (item)),
+                gimp_plug_in_procedure_get_label (GIMP_PLUG_IN_PROCEDURE (proc)));
 
       gimp_drawable_free_shadow_tiles (GIMP_DRAWABLE (item));
     }



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