add SHADOW_TILES log domain.

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()


svn path=/trunk/; revision=25605
This commit is contained in:
Michael Natterer 2008-05-10 10:15:49 +00:00 committed by Michael Natterer
parent 82c2616f0f
commit a37bce0d31
4 changed files with 19 additions and 8 deletions

View file

@ -1,3 +1,10 @@
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()
2008-05-10 Michael Natterer <mitch@gimp.org>
Applied modified patch from Alexia Death which adds velocity
@ -10,7 +17,7 @@
* app/paint/gimppaintoptions.[ch]: add velocity options in the
same way as there are pressure options. Add utility functions
which return dynamic opatity and dynamic rate according to the the
which return dynamic opatity and dynamic rate according to the
option's settings and some GimpCoords' pressure and velocity.
* app/tools/gimppaintoptions-gui.c: add GUI for the velocity

View file

@ -42,7 +42,8 @@ gimp_log_init (void)
{ "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,

View file

@ -29,7 +29,8 @@ typedef enum
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 @@ void gimp_logv (const gchar *function,
#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 */

View file

@ -37,6 +37,8 @@
#include "gimppluginmanager.h"
#include "gimppluginprocedure.h"
#include "gimp-log.h"
typedef struct _GimpPlugInCleanupImage GimpPlugInCleanupImage;
@ -334,13 +336,12 @@ gimp_plug_in_cleanup_item (GimpPlugInProcFrame *proc_frame,
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));
}