From 8c782e730deb42b5b313536b41c1a640062eb465 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 25 Nov 2002 22:17:46 +0000 Subject: [PATCH] Enclose in #ifdef G_ENABLE_DEBUG, as they use functions only available 2002-11-25 Tor Lillqvist * gdk/win32/gdkevents-win32.c (print_event_state, print_window_state, print_event): Enclose in #ifdef G_ENABLE_DEBUG, as they use functions only available with G_ENABLE_DEBUG, and are called only when G_ENABLE_DEBUG. (#99494, Arnaud Charlet) --- ChangeLog | 8 ++++++++ ChangeLog.pre-2-10 | 8 ++++++++ ChangeLog.pre-2-2 | 8 ++++++++ ChangeLog.pre-2-4 | 8 ++++++++ ChangeLog.pre-2-6 | 8 ++++++++ ChangeLog.pre-2-8 | 8 ++++++++ gdk/win32/gdkevents-win32.c | 4 ++++ 7 files changed, 52 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1fbb2106b5..1043cc174c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-11-25 Tor Lillqvist + + * gdk/win32/gdkevents-win32.c (print_event_state, + print_window_state, print_event): Enclose in #ifdef + G_ENABLE_DEBUG, as they use functions only available with + G_ENABLE_DEBUG, and are called only when G_ENABLE_DEBUG. (#99494, + Arnaud Charlet) + Mon Nov 25 16:58:27 2002 Owen Taylor * gdk/x11/gdkwindow-x11.c: Use _NET_WM_WINDOW_TYPE_SPLASH, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1fbb2106b5..1043cc174c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +2002-11-25 Tor Lillqvist + + * gdk/win32/gdkevents-win32.c (print_event_state, + print_window_state, print_event): Enclose in #ifdef + G_ENABLE_DEBUG, as they use functions only available with + G_ENABLE_DEBUG, and are called only when G_ENABLE_DEBUG. (#99494, + Arnaud Charlet) + Mon Nov 25 16:58:27 2002 Owen Taylor * gdk/x11/gdkwindow-x11.c: Use _NET_WM_WINDOW_TYPE_SPLASH, diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 1fbb2106b5..1043cc174c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,11 @@ +2002-11-25 Tor Lillqvist + + * gdk/win32/gdkevents-win32.c (print_event_state, + print_window_state, print_event): Enclose in #ifdef + G_ENABLE_DEBUG, as they use functions only available with + G_ENABLE_DEBUG, and are called only when G_ENABLE_DEBUG. (#99494, + Arnaud Charlet) + Mon Nov 25 16:58:27 2002 Owen Taylor * gdk/x11/gdkwindow-x11.c: Use _NET_WM_WINDOW_TYPE_SPLASH, diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 1fbb2106b5..1043cc174c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,11 @@ +2002-11-25 Tor Lillqvist + + * gdk/win32/gdkevents-win32.c (print_event_state, + print_window_state, print_event): Enclose in #ifdef + G_ENABLE_DEBUG, as they use functions only available with + G_ENABLE_DEBUG, and are called only when G_ENABLE_DEBUG. (#99494, + Arnaud Charlet) + Mon Nov 25 16:58:27 2002 Owen Taylor * gdk/x11/gdkwindow-x11.c: Use _NET_WM_WINDOW_TYPE_SPLASH, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1fbb2106b5..1043cc174c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,11 @@ +2002-11-25 Tor Lillqvist + + * gdk/win32/gdkevents-win32.c (print_event_state, + print_window_state, print_event): Enclose in #ifdef + G_ENABLE_DEBUG, as they use functions only available with + G_ENABLE_DEBUG, and are called only when G_ENABLE_DEBUG. (#99494, + Arnaud Charlet) + Mon Nov 25 16:58:27 2002 Owen Taylor * gdk/x11/gdkwindow-x11.c: Use _NET_WM_WINDOW_TYPE_SPLASH, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1fbb2106b5..1043cc174c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,11 @@ +2002-11-25 Tor Lillqvist + + * gdk/win32/gdkevents-win32.c (print_event_state, + print_window_state, print_event): Enclose in #ifdef + G_ENABLE_DEBUG, as they use functions only available with + G_ENABLE_DEBUG, and are called only when G_ENABLE_DEBUG. (#99494, + Arnaud Charlet) + Mon Nov 25 16:58:27 2002 Owen Taylor * gdk/x11/gdkwindow-x11.c: Use _NET_WM_WINDOW_TYPE_SPLASH, diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 586e0a75d3..6f9dab96ba 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -987,6 +987,8 @@ build_keyrelease_event (GdkEvent *event, event->key.length = 0; } +#ifdef G_ENABLE_DEBUG + static void print_event_state (gint state) { @@ -1134,6 +1136,8 @@ print_event (GdkEvent *event) g_print ("\n"); } +#endif + static gboolean gdk_window_is_child (GdkWindow *parent, GdkWindow *window)