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:

committed by
Michael Natterer

parent
82c2616f0f
commit
a37bce0d31
@ -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>
|
2008-05-10 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
Applied modified patch from Alexia Death which adds velocity
|
Applied modified patch from Alexia Death which adds velocity
|
||||||
@ -10,7 +17,7 @@
|
|||||||
|
|
||||||
* app/paint/gimppaintoptions.[ch]: add velocity options in the
|
* app/paint/gimppaintoptions.[ch]: add velocity options in the
|
||||||
same way as there are pressure options. Add utility functions
|
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.
|
option's settings and some GimpCoords' pressure and velocity.
|
||||||
|
|
||||||
* app/tools/gimppaintoptions-gui.c: add GUI for the 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 },
|
{ "dialog-factory", GIMP_LOG_DIALOG_FACTORY },
|
||||||
{ "menus", GIMP_LOG_MENUS },
|
{ "menus", GIMP_LOG_MENUS },
|
||||||
{ "save-dialog", GIMP_LOG_SAVE_DIALOG },
|
{ "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,
|
gimp_log_flags = g_parse_debug_string (env_log_val,
|
||||||
|
@ -29,7 +29,8 @@ typedef enum
|
|||||||
GIMP_LOG_DIALOG_FACTORY = 1 << 4,
|
GIMP_LOG_DIALOG_FACTORY = 1 << 4,
|
||||||
GIMP_LOG_MENUS = 1 << 5,
|
GIMP_LOG_MENUS = 1 << 5,
|
||||||
GIMP_LOG_SAVE_DIALOG = 1 << 6,
|
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;
|
} GimpLogFlags;
|
||||||
|
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ void gimp_logv (const gchar *function,
|
|||||||
#define MENUS GIMP_LOG_MENUS
|
#define MENUS GIMP_LOG_MENUS
|
||||||
#define SAVE_DIALOG GIMP_LOG_SAVE_DIALOG
|
#define SAVE_DIALOG GIMP_LOG_SAVE_DIALOG
|
||||||
#define IMAGE_SCALE GIMP_LOG_IMAGE_SCALE
|
#define IMAGE_SCALE GIMP_LOG_IMAGE_SCALE
|
||||||
|
#define SHADOW_TILES GIMP_LOG_SHADOW_TILES
|
||||||
|
|
||||||
#if 0 /* last resort */
|
#if 0 /* last resort */
|
||||||
# define GIMP_LOG /* nothing => no varargs, no log */
|
# define GIMP_LOG /* nothing => no varargs, no log */
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
#include "gimppluginmanager.h"
|
#include "gimppluginmanager.h"
|
||||||
#include "gimppluginprocedure.h"
|
#include "gimppluginprocedure.h"
|
||||||
|
|
||||||
|
#include "gimp-log.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct _GimpPlugInCleanupImage GimpPlugInCleanupImage;
|
typedef struct _GimpPlugInCleanupImage GimpPlugInCleanupImage;
|
||||||
|
|
||||||
@ -334,13 +336,12 @@ gimp_plug_in_cleanup_item (GimpPlugInProcFrame *proc_frame,
|
|||||||
|
|
||||||
if (cleanup->shadow_tiles)
|
if (cleanup->shadow_tiles)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
GimpProcedure *proc = proc_frame->procedure;
|
GimpProcedure *proc = proc_frame->procedure;
|
||||||
|
|
||||||
g_printerr ("Plug-In '%s' didn't free shadow tiles of drawable '%s'.\n",
|
GIMP_LOG (SHADOW_TILES,
|
||||||
gimp_plug_in_procedure_get_label (GIMP_PLUG_IN_PROCEDURE (proc)),
|
"Freeing shadow tiles of drawable '%s' on behalf of '%s'.",
|
||||||
gimp_object_get_name (GIMP_OBJECT (item)));
|
gimp_object_get_name (GIMP_OBJECT (item)),
|
||||||
#endif
|
gimp_plug_in_procedure_get_label (GIMP_PLUG_IN_PROCEDURE (proc)));
|
||||||
|
|
||||||
gimp_drawable_free_shadow_tiles (GIMP_DRAWABLE (item));
|
gimp_drawable_free_shadow_tiles (GIMP_DRAWABLE (item));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user