3 * Copyright (C) 2008 - 2012 The Geeqie Team
5 * Authors: Vladimir Nadvornik / Laurent Monin
7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
15 #if !GTK_CHECK_VERSION(2,24,0)
16 gint compat_gdk_window_get_width(GdkWindow *window)
19 gdk_drawable_get_size(window, &w, &h);
23 gint compat_gdk_window_get_height(GdkWindow *window)
26 gdk_drawable_get_size(window, &w, &h);
31 #if !GTK_CHECK_VERSION(2,22,0)
32 cairo_surface_t *compat_gdk_window_create_similar_surface (GdkWindow *window, cairo_content_t content, gint width, gint height)
34 cairo_t *cr = gdk_cairo_create(window);
35 cairo_surface_t *ws = cairo_get_target(cr);
36 cairo_surface_t *ret = cairo_surface_create_similar(ws, content, width, height);
41 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */