[gtksourceview] version: add version macros for 3.22
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] version: add version macros for 3.22
- Date: Sun, 3 Apr 2016 14:40:09 +0000 (UTC)
commit 2031906e3bc5f4e78f4f48b5bd3b6afa9c25d1c5
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Apr 3 16:26:16 2016 +0200
version: add version macros for 3.22
docs/reference/gtksourceview-3.0-sections.txt | 1 +
gtksourceview/gtksourceversion.h.in | 28 +++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gtksourceview-3.0-sections.txt b/docs/reference/gtksourceview-3.0-sections.txt
index e0725f1..cb6f6ee 100644
--- a/docs/reference/gtksourceview-3.0-sections.txt
+++ b/docs/reference/gtksourceview-3.0-sections.txt
@@ -860,6 +860,7 @@ GTK_SOURCE_VERSION_3_14
GTK_SOURCE_VERSION_3_16
GTK_SOURCE_VERSION_3_18
GTK_SOURCE_VERSION_3_20
+GTK_SOURCE_VERSION_3_22
GTK_SOURCE_VERSION_MIN_REQUIRED
GTK_SOURCE_VERSION_MAX_ALLOWED
</SECTION>
diff --git a/gtksourceview/gtksourceversion.h.in b/gtksourceview/gtksourceversion.h.in
index 85b514d..1368e31 100644
--- a/gtksourceview/gtksourceversion.h.in
+++ b/gtksourceview/gtksourceversion.h.in
@@ -197,6 +197,16 @@ G_BEGIN_DECLS
*/
#define GTK_SOURCE_VERSION_3_20 (G_ENCODE_VERSION (3, 20))
+/**
+ * GTK_SOURCE_VERSION_3_22:
+ *
+ * A macro that evaluates to the 3.22 version of GtkSourceView,
+ * in a format that can be used by the C pre-processor.
+ *
+ * Since: 3.22
+ */
+#define GTK_SOURCE_VERSION_3_22 (G_ENCODE_VERSION (3, 22))
+
#ifndef __GTK_DOC_IGNORE__
#if (GTK_SOURCE_MINOR_VERSION % 2)
#define GTK_SOURCE_VERSION_CUR_STABLE (G_ENCODE_VERSION (GTK_SOURCE_MAJOR_VERSION, GTK_SOURCE_MINOR_VERSION
+ 1))
@@ -474,6 +484,24 @@ G_BEGIN_DECLS
#endif
#endif /* __GTK_DOC_IGNORE__ */
+#ifndef __GTK_DOC_IGNORE__
+#if GTK_SOURCE_VERSION_MIN_REQUIRED >= GTK_SOURCE_VERSION_3_22
+#define GTK_SOURCE_DEPRECATED_IN_3_22 G_DEPRECATED _GTK_SOURCE_EXTERN
+#define GTK_SOURCE_DEPRECATED_IN_3_22_FOR(f) G_DEPRECATED_FOR(f) _GTK_SOURCE_EXTERN
+#else
+#define GTK_SOURCE_DEPRECATED_IN_3_22 _GTK_SOURCE_EXTERN
+#define GTK_SOURCE_DEPRECATED_IN_3_22_FOR(f) _GTK_SOURCE_EXTERN
+#endif
+#endif /* __GTK_DOC_IGNORE__ */
+
+#ifndef __GTK_DOC_IGNORE__
+#if GTK_SOURCE_VERSION_MAX_ALLOWED < GTK_SOURCE_VERSION_3_22
+#define GTK_SOURCE_AVAILABLE_IN_3_22 G_UNAVAILABLE(3, 22) _GTK_SOURCE_EXTERN
+#else
+#define GTK_SOURCE_AVAILABLE_IN_3_22 _GTK_SOURCE_EXTERN
+#endif
+#endif /* __GTK_DOC_IGNORE__ */
+
GTK_SOURCE_AVAILABLE_IN_3_20
guint gtk_source_get_major_version (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]