Add and use GDK_CHECK_DEBUG macro

This is following what we've already done in GTK+. It avoids
direct access to _gdk_debug_flags all over the place.
This commit is contained in:
Matthias Clasen
2016-02-28 21:29:35 -05:00
parent 2ad19c70ce
commit ee217dc823
10 changed files with 19 additions and 16 deletions

View File

@ -1500,7 +1500,7 @@ xdnd_read_actions (GdkX11DragContext *context_x11)
context_x11->xdnd_have_actions = TRUE;
#ifdef G_ENABLE_DEBUG
if (_gdk_debug_flags & GDK_DEBUG_DND)
if (GDK_DEBUG_CHECK (DND))
{
GString *action_str = g_string_new (NULL);
if (context->actions & GDK_ACTION_MOVE)
@ -1763,7 +1763,7 @@ xdnd_enter_filter (GdkXEvent *xev,
}
#ifdef G_ENABLE_DEBUG
if (_gdk_debug_flags & GDK_DEBUG_DND)
if (GDK_DEBUG_CHECK (DND))
print_target_list (context->targets);
#endif /* G_ENABLE_DEBUG */