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

@ -407,7 +407,7 @@ gdk_x11_window_end_frame (GdkWindow *window)
if (impl->toplevel->current_counter_value % 2 == 1)
{
#ifdef G_ENABLE_DEBUG
if ((_gdk_debug_flags & GDK_DEBUG_FRAMES) != 0)
if (GDK_DEBUG_CHECK (FRAMES))
{
XImage *image = XGetImage (GDK_WINDOW_XDISPLAY (window),
GDK_WINDOW_XID (window),