forked from AuroraMiddleware/gtk
Add 4.0 deprecation warning macros
Note that functions deprecated in 4.0 will cause deprecation warnings even with the pre-4.0 GTK development versions.
This commit is contained in:
parent
9335cde8e8
commit
df6494d73a
@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
#define GDK_VERSION_3_92 (G_ENCODE_VERSION (3, 92))
|
#define GDK_VERSION_3_92 (G_ENCODE_VERSION (3, 92))
|
||||||
#define GDK_VERSION_3_94 (G_ENCODE_VERSION (3, 94))
|
#define GDK_VERSION_3_94 (G_ENCODE_VERSION (3, 94))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GDK_VERSION_4_0:
|
* GDK_VERSION_4_0:
|
||||||
*
|
*
|
||||||
@ -137,6 +138,13 @@
|
|||||||
# define GDK_AVAILABLE_IN_4_0 _GDK_EXTERN
|
# define GDK_AVAILABLE_IN_4_0 _GDK_EXTERN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_92
|
||||||
|
# define GDK_DEPRECATED_IN_4_0 GDK_DEPRECATED
|
||||||
|
# define GDK_DEPRECATED_IN_4_0_FOR(f) GDK_DEPRECATED_FOR(f)
|
||||||
|
#else
|
||||||
|
# define GDK_DEPRECATED_IN_4_0 _GDK_EXTERN
|
||||||
|
# define GDK_DEPRECATED_IN_4_0_FOR(f) _GDK_EXTERN
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __GDK_VERSION_MACROS_H__ */
|
#endif /* __GDK_VERSION_MACROS_H__ */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user