[gtksourceview] version: add version macros for 3.24
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] version: add version macros for 3.24
- Date: Sun, 25 Sep 2016 17:23:02 +0000 (UTC)
commit 5457885b4b99967a82b6137507485fc21945d3a0
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Sep 23 15:08:22 2016 +0200
version: add version macros for 3.24
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 7d381db..9d49512 100644
--- a/docs/reference/gtksourceview-3.0-sections.txt
+++ b/docs/reference/gtksourceview-3.0-sections.txt
@@ -915,6 +915,7 @@ GTK_SOURCE_VERSION_3_16
GTK_SOURCE_VERSION_3_18
GTK_SOURCE_VERSION_3_20
GTK_SOURCE_VERSION_3_22
+GTK_SOURCE_VERSION_3_24
GTK_SOURCE_VERSION_MIN_REQUIRED
GTK_SOURCE_VERSION_MAX_ALLOWED
</SECTION>
diff --git a/gtksourceview/gtksourceversion.h.in b/gtksourceview/gtksourceversion.h.in
index 4fd7ef6..b88f221 100644
--- a/gtksourceview/gtksourceversion.h.in
+++ b/gtksourceview/gtksourceversion.h.in
@@ -207,6 +207,16 @@ G_BEGIN_DECLS
*/
#define GTK_SOURCE_VERSION_3_22 (G_ENCODE_VERSION (3, 22))
+/**
+ * GTK_SOURCE_VERSION_3_24:
+ *
+ * A macro that evaluates to the 3.24 version of GtkSourceView,
+ * in a format that can be used by the C pre-processor.
+ *
+ * Since: 3.24
+ */
+#define GTK_SOURCE_VERSION_3_24 (G_ENCODE_VERSION (3, 24))
+
#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))
@@ -502,6 +512,24 @@ G_BEGIN_DECLS
#endif
#endif /* __GTK_DOC_IGNORE__ */
+#ifndef __GTK_DOC_IGNORE__
+#if GTK_SOURCE_VERSION_MIN_REQUIRED >= GTK_SOURCE_VERSION_3_24
+#define GTK_SOURCE_DEPRECATED_IN_3_24 G_DEPRECATED _GTK_SOURCE_EXTERN
+#define GTK_SOURCE_DEPRECATED_IN_3_24_FOR(f) G_DEPRECATED_FOR(f) _GTK_SOURCE_EXTERN
+#else
+#define GTK_SOURCE_DEPRECATED_IN_3_24 _GTK_SOURCE_EXTERN
+#define GTK_SOURCE_DEPRECATED_IN_3_24_FOR(f) _GTK_SOURCE_EXTERN
+#endif
+#endif /* __GTK_DOC_IGNORE__ */
+
+#ifndef __GTK_DOC_IGNORE__
+#if GTK_SOURCE_VERSION_MAX_ALLOWED < GTK_SOURCE_VERSION_3_24
+#define GTK_SOURCE_AVAILABLE_IN_3_24 G_UNAVAILABLE(3, 24) _GTK_SOURCE_EXTERN
+#else
+#define GTK_SOURCE_AVAILABLE_IN_3_24 _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]