summaryrefslogtreecommitdiff
path: root/gdk/gdkprivate.h
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-02-19 06:21:27 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-02-19 06:21:27 +0000
commitfc7e845c8f4d3eb4481f803eae3f9c7f8d75a1d9 (patch)
tree888ffee4d7f12e1ed7aabf29fe67d80de3849268 /gdk/gdkprivate.h
parent3d4cc2f904cd5d0dd1acfa6938c5577264fab524 (diff)
downloadgdk-pixbuf-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/gdkprivate.h')
-rw-r--r--gdk/gdkprivate.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/gdk/gdkprivate.h b/gdk/gdkprivate.h
index 55e150563..c1abc26ec 100644
--- a/gdk/gdkprivate.h
+++ b/gdk/gdkprivate.h
@@ -170,7 +170,6 @@ typedef struct _GdkICPrivate GdkICPrivate;
#endif /* USE_XIM */
-
struct _GdkColorContextPrivate
{
GdkColorContext color_context;
@@ -178,6 +177,13 @@ struct _GdkColorContextPrivate
XStandardColormap std_cmap;
};
+typedef enum {
+ GDK_DEBUG_MISC = 1<<0,
+ GDK_DEBUG_EVENTS = 1 << 1,
+ GDK_DEBUG_DND = 1<<2,
+ GDK_DEBUG_COLOR_CONTEXT = 1<<3,
+ GDK_DEBUG_XIM = 1<<4
+} GdkDebugFlag;
void gdk_window_init (void);
void gdk_visual_init (void);
@@ -219,6 +225,22 @@ extern gchar *gdk_progclass;
extern gint gdk_error_code;
extern gint gdk_error_warnings;
+/* Debugging support */
+
+#ifdef G_ENABLE_DEBUG
+
+#define GDK_NOTE(type,action) G_STMT_START { \
+ if (gdk_debug_flags & GDK_DEBUG_##type) \
+ action; } G_STMT_END
+
+#else /* !G_ENABLE_DEBUG */
+
+#define GDK_NOTE(type,action)
+
+#endif /* G_ENABLE_DEBUG */
+
+extern guint gdk_debug_flags;
+
#ifdef __cplusplus
}