[gtk+/gtk-3-22] gdk/win32/gdkselection-win32.c: Fix build without G_ENABLE_DEBUG
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] gdk/win32/gdkselection-win32.c: Fix build without G_ENABLE_DEBUG
- Date: Thu, 14 Dec 2017 17:15:09 +0000 (UTC)
commit c9a54ba1c2c2790bab84e2d6fb9ab7969a1402b2
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Dec 15 01:11:17 2017 +0800
gdk/win32/gdkselection-win32.c: Fix build without G_ENABLE_DEBUG
_gdk_win32_data_to_string() is only available when G_ENABLE_DEBUG is
defined, so as in gdkproperty-win32.c, use GDK_NOTE on the parts where
we assemble and output the debug messages.
gdk/win32/gdkselection-win32.c | 38 ++++++++++++++++++++------------------
1 files changed, 20 insertions(+), 18 deletions(-)
---
diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c
index 12ee4ef..41bab53 100644
--- a/gdk/win32/gdkselection-win32.c
+++ b/gdk/win32/gdkselection-win32.c
@@ -2422,24 +2422,26 @@ _gdk_win32_selection_property_change (GdkWin32Selection *win32_sel,
}
else
{
- gchar *prop_name = gdk_atom_name (property);
- gchar *type_name = gdk_atom_name (type);
- gchar *datastring = _gdk_win32_data_to_string (data, MIN (10, format*nelements/8));
-
- g_warning ("Unsupported property change on window 0x%p, %s property %s, %d-bit, target 0x%x of %d
bytes: %s",
- window,
- (mode == GDK_PROP_MODE_REPLACE ? "REPLACE" :
- (mode == GDK_PROP_MODE_PREPEND ? "PREPEND" :
- (mode == GDK_PROP_MODE_APPEND ? "APPEND" :
- "???"))),
- prop_name,
- format,
- type_name,
- nelements,
- datastring);
- g_free (datastring);
- g_free (prop_name);
- g_free (type_name);
+ GDK_NOTE (DND, {
+ gchar *prop_name = gdk_atom_name (property);
+ gchar *type_name = gdk_atom_name (type);
+ gchar *datastring = _gdk_win32_data_to_string (data, MIN (10, format*nelements/8));
+
+ g_warning ("Unsupported property change on window 0x%p, %s property %s, %d-bit, target 0x%x of %d
bytes: %s",
+ window,
+ (mode == GDK_PROP_MODE_REPLACE ? "REPLACE" :
+ (mode == GDK_PROP_MODE_PREPEND ? "PREPEND" :
+ (mode == GDK_PROP_MODE_APPEND ? "APPEND" :
+ "???"))),
+ prop_name,
+ format,
+ type_name,
+ nelements,
+ datastring);
+ g_free (datastring);
+ g_free (prop_name);
+ g_free (type_name);
+ });
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]