summaryrefslogtreecommitdiff
path: root/gdk/gdkcompat.h
blob: 04da2147cc03372cf938abf12f16f8ecae0d0d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __GDK_COMPAT_H__
#define __GDK_COMPAT_H__


#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/* use -DGDK_DISABLE_COMPAT_H to compile your code and asure that it
 * works with future GTK+ versions as well.
 */
#ifndef	GDK_DISABLE_COMPAT_H

#define GdkWindowType                  GdkDrawableType

#define gdk_window_get_size            gdk_drawable_get_size
#define gdk_window_get_type            gdk_drawable_get_type
#define gdk_window_get_colormap        gdk_drawable_get_colormap
#define gdk_window_set_colormap        gdk_drawable_set_colormap
#define gdk_window_get_visual          gdk_drawable_get_visual

#define gdk_window_copy_area(drawable,gc,x,y,source_drawable,source_x,source_y,width,height) \
   gdk_draw_pixmap(drawable,gc,source_drawable,source_x,source_y,x,y,width,height)

#define GDK_WINDOW_PIXMAP GDK_DRAWABLE_PIXMAP
             
#endif	/* GDK_DISABLE_COMPAT_H */

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __GDK_COMPAT_H__ */