diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-03-11 00:16:35 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-03-11 00:22:36 -0500 |
commit | 02742d53323bb17870317ca53d93627c7d7cbcc4 (patch) | |
tree | 2758c54b63042302c4af61fc9abbf918b136e901 /gtk/gtkprivate.h | |
parent | f82e4ff3625eca3661622ef0efba99dfdda4227d (diff) | |
download | gtk+-02742d53323bb17870317ca53d93627c7d7cbcc4.tar.gz |
Make debug flags per-display
Tihs lets us toggle debug flags in the inspector without affecting
the inspector itself.
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r-- | gtk/gtkprivate.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index 9385b8bafd..cd48558e99 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -97,6 +97,18 @@ void _gtk_load_dll_with_libgtk3_manifest (const char *dllname); gboolean gtk_simulate_touchscreen (void); +guint gtk_get_display_debug_flags (GdkDisplay *display); + +#ifdef G_ENABLE_DEBUG + +#define GTK_DISPLAY_DEBUG_CHECK(display,type) G_UNLIKELY (gtk_get_display_debug_flags (display) & GTK_DEBUG_##type) + +#else + +#define GTK_DISPLAY_DEBUG_CHECK(display,type) 0 + +#endif /* G_ENABLE_DEBUG */ + G_END_DECLS #endif /* __GTK_PRIVATE_H__ */ |