[gimp] plug-ins: Disable debug output from pygimp/pygimp-pdb.c
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: Disable debug output from pygimp/pygimp-pdb.c
- Date: Thu, 19 May 2011 05:19:15 +0000 (UTC)
commit d00196dc7db7f3dc3af599089dd582cf3562a5e7
Author: Martin Nordholts <martinn src gnome org>
Date: Thu May 19 06:42:46 2011 +0200
plug-ins: Disable debug output from pygimp/pygimp-pdb.c
Remove debug output from pygimp/pygimp-pdb.c so we don't get annoying
debug output during the plug-in query phase.
plug-ins/pygimp/pygimp-pdb.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pygimp/pygimp-pdb.c b/plug-ins/pygimp/pygimp-pdb.c
index cece765..7f26375 100644
--- a/plug-ins/pygimp/pygimp-pdb.c
+++ b/plug-ins/pygimp/pygimp-pdb.c
@@ -34,7 +34,7 @@
#include <glib/gprintf.h>
#ifndef PG_DEBUG
-# define PG_DEBUG 2
+# define PG_DEBUG 0
#endif
/* ----------------------------------------------------- */
@@ -382,7 +382,9 @@ pygimp_param_from_tuple(PyObject *args, const GimpParamDef *ptype, int nparams)
}
for (i = 1; i <= nparams; i++) {
item = PyTuple_GetItem(tuple, i-1);
+#if PG_DEBUG > 1
g_printf("param_from_tuple: type: %d, PDB_ITEM: %d\n", ptype[i-1].type, GIMP_PDB_ITEM);
+#endif
switch (ptype[i-1].type) {
case GIMP_PDB_INT32:
check((x = PyNumber_Int(item)) == NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]