michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef GDKWINDOW_WRAPPER_H michael@0: #define GDKWINDOW_WRAPPER_H michael@0: michael@0: #define gdk_window_get_display gdk_window_get_display_ michael@0: #define gdk_window_get_screen gdk_window_get_screen_ michael@0: #include_next michael@0: #undef gdk_window_get_display michael@0: #undef gdk_window_get_screen michael@0: michael@0: static inline GdkDisplay * michael@0: gdk_window_get_display(GdkWindow *window) michael@0: { michael@0: return gdk_drawable_get_display(GDK_DRAWABLE(window)); michael@0: } michael@0: michael@0: static inline GdkScreen* michael@0: gdk_window_get_screen(GdkWindow *window) michael@0: { michael@0: return gdk_drawable_get_screen (window); michael@0: } michael@0: michael@0: #if GDK_PIXBUF_MAJOR == 2 && GDK_PIXBUF_MINOR < 18 michael@0: static inline gboolean michael@0: gdk_window_is_destroyed(GdkWindow *window) michael@0: { michael@0: return GDK_WINDOW_OBJECT(window)->destroyed; michael@0: } michael@0: #endif michael@0: #endif /* GDKWINDOW_WRAPPER_H */