diff options
author | Tor Lillqvist <tml@iki.fi> | 2002-02-13 21:59:47 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2002-02-13 21:59:47 +0000 |
commit | d000d2bb6de4b50a8ead060eef9dd91a265a1240 (patch) | |
tree | 5eccd48785d7a6749c7316183d571b8de53a7c80 /gdk | |
parent | 803a1f6fbcbad1f3006681d0b8ac0748bbe61746 (diff) | |
download | gtk+-d000d2bb6de4b50a8ead060eef9dd91a265a1240.tar.gz |
Add some more GdkDebugFlags, for more fine-grained debugging output
2002-02-13 Tor Lillqvist <tml@iki.fi>
* gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
fine-grained debugging output (mainly used in the Win32 backend).
* gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdk.c | 9 | ||||
-rw-r--r-- | gdk/gdkinternals.h | 7 |
2 files changed, 15 insertions, 1 deletions
@@ -59,9 +59,16 @@ static const GDebugKey gdk_debug_keys[] = { {"dnd", GDK_DEBUG_DND}, {"xim", GDK_DEBUG_XIM}, {"nograbs", GDK_DEBUG_NOGRABS}, + {"colormap", GDK_DEBUG_COLORMAP}, + {"gdkrgb", GDK_DEBUG_GDKRGB}, + {"gc", GDK_DEBUG_GC}, + {"pixmap", GDK_DEBUG_PIXMAP}, + {"image", GDK_DEBUG_IMAGE}, + {"input", GDK_DEBUG_INPUT}, + {"cursor", GDK_DEBUG_CURSOR}, }; -static const int gdk_ndebug_keys = sizeof(gdk_debug_keys)/sizeof(GDebugKey); +static const int gdk_ndebug_keys = G_N_ELEMENTS (gdk_debug_keys); #endif /* G_ENABLE_DEBUG */ diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 327d56560d..ae7a9451af 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -69,6 +69,13 @@ typedef enum { GDK_DEBUG_DND = 1 << 2, GDK_DEBUG_XIM = 1 << 3, GDK_DEBUG_NOGRABS = 1 << 4, + GDK_DEBUG_COLORMAP = 1 << 5, + GDK_DEBUG_GDKRGB = 1 << 6, + GDK_DEBUG_GC = 1 << 7, + GDK_DEBUG_PIXMAP = 1 << 8, + GDK_DEBUG_IMAGE = 1 << 9, + GDK_DEBUG_INPUT = 1 <<10, + GDK_DEBUG_CURSOR = 1 <<11 } GdkDebugFlag; #ifndef GDK_DISABLE_DEPRECATED |