diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-02-19 06:21:27 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-02-19 06:21:27 +0000 |
commit | fc7e845c8f4d3eb4481f803eae3f9c7f8d75a1d9 (patch) | |
tree | 888ffee4d7f12e1ed7aabf29fe67d80de3849268 /gdk/gdkcc.c | |
parent | 3d4cc2f904cd5d0dd1acfa6938c5577264fab524 (diff) | |
download | gtk+-fc7e845c8f4d3eb4481f803eae3f9c7f8d75a1d9.tar.gz |
configure.in gdk/gdk.[ch] gdk/gdkcc.c gdk/gdkglobals.c
Thu Feb 19 01:11:48 1998 Owen Taylor <owt1@cornell.edu>
* configure.in gdk/gdk.[ch] gdk/gdkcc.c
gdk/gdkglobals.c gdk/gdkinputcommon.h gdk/gdkprivate.h
gdk/gdkvisual.c glib/configure.in glib/glib.h
glib/gutils.c gtk/Makefile.am gtk/gtkmain.c
gtk/gtkobject.[ch] gtk/gtkdebug.h docs/debugging.txt
New system for controlling debugging:
* --enable-debug=[no/yes/minimum]
* G_DISABLE_ASSERT and G_DISABLE_CHECKS for glib
* G_NO_CHECK_CASTS to control cast checking
* G_ENABLE_DEBUG enables run time checking which controls:
Object tracing
Showing events
Miscellaneous g_print's in GDK
And is controlled by --gdk-debug/GDK_DEBUG, --gtk-debug/GTK_DEBUG
* debug_level and show_events are gone from GTK
See docs/debugging.txt for details.
And some fixups to the configure.in's so '-g' can be
overriden on the command line for --enable-debug
Diffstat (limited to 'gdk/gdkcc.c')
-rw-r--r-- | gdk/gdkcc.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/gdk/gdkcc.c b/gdk/gdkcc.c index d027c6de6d..7224b3e939 100644 --- a/gdk/gdkcc.c +++ b/gdk/gdkcc.c @@ -552,11 +552,11 @@ gdk_color_context_new (GdkVisual *visual, { case GDK_VISUAL_STATIC_GRAY: case GDK_VISUAL_GRAYSCALE: - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_new: visual class is %s\n", (visual->type == GDK_VISUAL_STATIC_GRAY) ? "GDK_VISUAL_STATIC_GRAY" : - "GDK_VISUAL_GRAYSCALE"); + "GDK_VISUAL_GRAYSCALE")); if (GDK_VISUAL_XVISUAL (cc->visual)->map_entries == 2) init_bw (cc); @@ -566,26 +566,26 @@ gdk_color_context_new (GdkVisual *visual, break; case GDK_VISUAL_TRUE_COLOR: /* shifts */ - if (gdk_debug_level >= 1) - g_print ("gdk_color_context_new: visual class is GDK_VISUAL_TRUE_COLOR\n"); + GDK_NOTE (COLOR_CONTEXT, + g_print ("gdk_color_context_new: visual class is GDK_VISUAL_TRUE_COLOR\n")); init_true_color (cc); break; case GDK_VISUAL_DIRECT_COLOR: /* shifts and fake CLUT */ - if (gdk_debug_level >= 1) - g_print ("gdk_color_context_new: visual class is GDK_VISUAL_DIRECT_COLOR\n"); + GDK_NOTE (COLOR_CONTEXT, + g_print ("gdk_color_context_new: visual class is GDK_VISUAL_DIRECT_COLOR\n")); init_direct_color (cc); break; case GDK_VISUAL_STATIC_COLOR: case GDK_VISUAL_PSEUDO_COLOR: - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_new: visual class is %s\n", (visual->type == GDK_VISUAL_STATIC_COLOR) ? "GDK_VISUAL_STATIC_COLOR" : - "GDK_VISUAL_PSEUDO_COLOR"); + "GDK_VISUAL_PSEUDO_COLOR")); init_color (cc); break; @@ -607,9 +607,9 @@ gdk_color_context_new (GdkVisual *visual, cc->num_allocated = 0; - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_new: screen depth is %i, no. of colors is %i\n", - cc->visual->depth, cc->num_colors); + cc->visual->depth, cc->num_colors)); /* check if we need to initialize a hash table */ @@ -811,10 +811,10 @@ gdk_color_context_get_pixel (GdkColorContext *cc, { cc->max_colors *= 2; - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_get_pixel: " "resizing CLUT to %i entries\n", - cc->max_colors); + cc->max_colors)); cc->clut = g_realloc (cc->clut, cc->max_colors * sizeof (gulong)); @@ -906,9 +906,9 @@ gdk_color_context_get_pixels (GdkColorContext *cc, if ((ncols == ncolors) || (nopen == 0)) { - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_get_pixels: got all %i colors; " - "(%i colors allocated so far)\n", ncolors, cc->num_allocated); + "(%i colors allocated so far)\n", ncolors, cc->num_allocated)); return; } @@ -1031,10 +1031,10 @@ gdk_color_context_get_pixels (GdkColorContext *cc, if ((ncols == ncolors) || (nopen == 0)) { - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_get_pixels: got %i colors, %i exact and " "%i close (%i colors allocated so far)\n", - ncolors, exact_col, close_col, cc->num_allocated); + ncolors, exact_col, close_col, cc->num_allocated)); return; } @@ -1102,10 +1102,10 @@ gdk_color_context_get_pixels (GdkColorContext *cc, } while (++idx < nopen); - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_get_pixels: got %i colors, %i exact, %i close, " "%i substituted, %i to black (%i colors allocated so far)\n", - ncolors, exact_col, close_col, subst_col, black_col, cc->num_allocated); + ncolors, exact_col, close_col, subst_col, black_col, cc->num_allocated)); } void @@ -1176,9 +1176,9 @@ gdk_color_context_get_pixels_incremental (GdkColorContext *cc, } #ifdef DEBUG else - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_get_pixels_incremental: " - "pixel at slot %i already allocated, skipping\n", i); + "pixel at slot %i already allocated, skipping\n", i)); #endif } } @@ -1187,10 +1187,10 @@ gdk_color_context_get_pixels_incremental (GdkColorContext *cc, if ((ncols == ncolors) || (nopen == 0)) { - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_get_pixels_incremental: got all %i colors " "(%i colors allocated so far)\n", - ncolors, cc->num_allocated); + ncolors, cc->num_allocated)); return; } @@ -1293,11 +1293,11 @@ gdk_color_context_get_pixels_incremental (GdkColorContext *cc, if ((ncols == ncolors) || (nopen == 0)) { - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_get_pixels_incremental: " "got %i colors, %i exact and %i close " "(%i colors allocated so far)\n", - ncolors, exact_col, close_col, cc->num_allocated); + ncolors, exact_col, close_col, cc->num_allocated)); return; } @@ -1364,11 +1364,11 @@ gdk_color_context_get_pixels_incremental (GdkColorContext *cc, } while (++idx < nopen); - if (gdk_debug_level >= 1) + GDK_NOTE (COLOR_CONTEXT, g_print ("gdk_color_context_get_pixels_incremental: " "got %i colors, %i exact, %i close, %i substituted, %i to black " "(%i colors allocated so far)\n", - ncolors, exact_col, close_col, subst_col, black_col, cc->num_allocated); + ncolors, exact_col, close_col, subst_col, black_col, cc->num_allocated)); } gint |