Commit a37bce0d authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

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
parent 82c2616f
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
......
......@@ -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,
......
......@@ -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 */
......
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment