widget/gtk/compat/gdk/gdkwindow.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/gtk/compat/gdk/gdkwindow.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef GDKWINDOW_WRAPPER_H
     1.9 +#define GDKWINDOW_WRAPPER_H
    1.10 +
    1.11 +#define gdk_window_get_display gdk_window_get_display_
    1.12 +#define gdk_window_get_screen gdk_window_get_screen_
    1.13 +#include_next <gdk/gdkwindow.h>
    1.14 +#undef gdk_window_get_display
    1.15 +#undef gdk_window_get_screen
    1.16 +
    1.17 +static inline GdkDisplay *
    1.18 +gdk_window_get_display(GdkWindow *window)
    1.19 +{
    1.20 +  return gdk_drawable_get_display(GDK_DRAWABLE(window));
    1.21 +}
    1.22 +
    1.23 +static inline GdkScreen*
    1.24 +gdk_window_get_screen(GdkWindow *window)
    1.25 +{
    1.26 +  return gdk_drawable_get_screen (window);
    1.27 +}
    1.28 +
    1.29 +#if GDK_PIXBUF_MAJOR == 2 && GDK_PIXBUF_MINOR < 18
    1.30 +static inline gboolean
    1.31 +gdk_window_is_destroyed(GdkWindow *window)
    1.32 +{
    1.33 +  return GDK_WINDOW_OBJECT(window)->destroyed;
    1.34 +}
    1.35 +#endif
    1.36 +#endif /* GDKWINDOW_WRAPPER_H */

mercurial