2010-06-14 10:48:27 +00:00
|
|
|
#ifndef __GDK_COMPAT_H__
|
|
|
|
#define __GDK_COMPAT_H__
|
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
|
|
|
|
/* Provide a compatibility layer for accessor function introduced
|
|
|
|
* in GTK+ 2.22 which we need to build without deprecated GDK symbols.
|
|
|
|
* That way it is still possible to build with GTK+ 2.18 when not
|
|
|
|
* using GDK_DISABLE_DEPRECATED.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !GTK_CHECK_VERSION (2, 21, 1)
|
|
|
|
|
|
|
|
#define gdk_visual_get_depth(v) GDK_VISUAL(v)->depth
|
|
|
|
|
|
|
|
#endif /*GTK_CHECK_VERSION */
|
|
|
|
|
2010-09-09 15:01:52 +00:00
|
|
|
|
|
|
|
/* Compatibility with old GDK key symbols */
|
|
|
|
#ifndef GDK_KEY_Escape
|
|
|
|
#define GDK_KEY_Escape GDK_Escape
|
|
|
|
#endif /* GDK_KEY_Escape */
|
|
|
|
|
2010-06-14 10:48:27 +00:00
|
|
|
#endif /* __GDK_COMPAT_H__ */
|