[gdk-pixbuf] Add missing 2.38 versioning macros



commit a61b77827bf27841c32b5ff7b4d8403a5ac6f305
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Sep 1 11:22:40 2018 +0100

    Add missing 2.38 versioning macros
    
    We did not introduce any new symbol, but it's good project hygiene to
    always have per-release version macros as part of the release process.

 docs/gdk-pixbuf-sections.txt   |  1 +
 gdk-pixbuf/gdk-pixbuf-macros.h | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
---
diff --git a/docs/gdk-pixbuf-sections.txt b/docs/gdk-pixbuf-sections.txt
index b64fa6cdd..8ed84635c 100644
--- a/docs/gdk-pixbuf-sections.txt
+++ b/docs/gdk-pixbuf-sections.txt
@@ -33,6 +33,7 @@ GDK_PIXBUF_VERSION_2_30
 GDK_PIXBUF_VERSION_2_32
 GDK_PIXBUF_VERSION_2_34
 GDK_PIXBUF_VERSION_2_36
+GDK_PIXBUF_VERSION_2_38
 GDK_PIXBUF_VERSION_MIN_REQUIRED
 GDK_PIXBUF_VERSION_MAX_ALLOWED
 
diff --git a/gdk-pixbuf/gdk-pixbuf-macros.h b/gdk-pixbuf/gdk-pixbuf-macros.h
index 06296220b..85accaaf8 100644
--- a/gdk-pixbuf/gdk-pixbuf-macros.h
+++ b/gdk-pixbuf/gdk-pixbuf-macros.h
@@ -238,6 +238,16 @@
  */
 #define GDK_PIXBUF_VERSION_2_36 (G_ENCODE_VERSION (2, 36))
 
+/**
+ * GDK_PIXBUF_VERSION_2_38:
+ *
+ * A macro that evaluates to the 2.38 version of GdkPixbuf,
+ * in a format that can be used by the C pre-processor.
+ *
+ * Since: 2.38
+ */
+#define GDK_PIXBUF_VERSION_2_38 (G_ENCODE_VERSION (2, 38))
+
 #ifndef __GTK_DOC_IGNORE__
 #if (GDK_PIXBUF_MINOR % 2)
 #define GDK_PIXBUF_VERSION_CUR_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR + 1))
@@ -659,4 +669,22 @@
 #endif
 #endif /* __GTK_DOC_IGNORE__ */
 
+#ifndef __GTK_DOC_IGNORE__
+#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_38
+#define GDK_PIXBUF_DEPRECATED_IN_2_38 G_DEPRECATED _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_DEPRECATED_IN_2_38_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
+#else
+#define GDK_PIXBUF_DEPRECATED_IN_2_38 _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_DEPRECATED_IN_2_38_FOR(f) _GDK_PIXBUF_EXTERN
+#endif
+#endif /* __GTK_DOC_IGNORE__ */
+
+#ifndef __GTK_DOC_IGNORE__
+#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_38
+#define GDK_PIXBUF_AVAILABLE_IN_2_38 G_UNAVAILABLE(2, 38) _GDK_PIXBUF_EXTERN
+#else
+#define GDK_PIXBUF_AVAILABLE_IN_2_38 _GDK_PIXBUF_EXTERN
+#endif
+#endif /* __GTK_DOC_IGNORE__ */
+
 #endif /* GDK_PIXBUF_MACROS_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]