[gdk-pixbuf] Use the appropriate version for unavailable annotations



commit 187abfc4781cea3218063cb35cef6a8bc97de5f9
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Sep 1 11:26:32 2018 +0100

    Use the appropriate version for unavailable annotations
    
    A copy and paste thinko on the GDK_PIXBUF_UNAVAILABLE_IN_* macros after
    2.22 generated the exact same warning for all releases after that.
    
    This commit introduces no functional change, only an updated compiler
    warning with the correct version numbers.

 gdk-pixbuf/gdk-pixbuf-macros.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-macros.h b/gdk-pixbuf/gdk-pixbuf-macros.h
index 85accaaf8..be1c25c0a 100644
--- a/gdk-pixbuf/gdk-pixbuf-macros.h
+++ b/gdk-pixbuf/gdk-pixbuf-macros.h
@@ -555,7 +555,7 @@
 
 #ifndef __GTK_DOC_IGNORE__
 #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_24
-#define GDK_PIXBUF_AVAILABLE_IN_2_24 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_AVAILABLE_IN_2_24 G_UNAVAILABLE(2, 24) _GDK_PIXBUF_EXTERN
 #else
 #define GDK_PIXBUF_AVAILABLE_IN_2_24 _GDK_PIXBUF_EXTERN
 #endif
@@ -573,7 +573,7 @@
 
 #ifndef __GTK_DOC_IGNORE__
 #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_26
-#define GDK_PIXBUF_AVAILABLE_IN_2_26 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_AVAILABLE_IN_2_26 G_UNAVAILABLE(2, 26) _GDK_PIXBUF_EXTERN
 #else
 #define GDK_PIXBUF_AVAILABLE_IN_2_26 _GDK_PIXBUF_EXTERN
 #endif
@@ -591,7 +591,7 @@
 
 #ifndef __GTK_DOC_IGNORE__
 #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_28
-#define GDK_PIXBUF_AVAILABLE_IN_2_28 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_AVAILABLE_IN_2_28 G_UNAVAILABLE(2, 28) _GDK_PIXBUF_EXTERN
 #else
 #define GDK_PIXBUF_AVAILABLE_IN_2_28 _GDK_PIXBUF_EXTERN
 #endif
@@ -609,7 +609,7 @@
 
 #ifndef __GTK_DOC_IGNORE__
 #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_30
-#define GDK_PIXBUF_AVAILABLE_IN_2_30 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_AVAILABLE_IN_2_30 G_UNAVAILABLE(2, 30) _GDK_PIXBUF_EXTERN
 #else
 #define GDK_PIXBUF_AVAILABLE_IN_2_30 _GDK_PIXBUF_EXTERN
 #endif
@@ -627,7 +627,7 @@
 
 #ifndef __GTK_DOC_IGNORE__
 #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_32
-#define GDK_PIXBUF_AVAILABLE_IN_2_32 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_AVAILABLE_IN_2_32 G_UNAVAILABLE(2, 32) _GDK_PIXBUF_EXTERN
 #else
 #define GDK_PIXBUF_AVAILABLE_IN_2_32 _GDK_PIXBUF_EXTERN
 #endif
@@ -645,7 +645,7 @@
 
 #ifndef __GTK_DOC_IGNORE__
 #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_34
-#define GDK_PIXBUF_AVAILABLE_IN_2_34 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_AVAILABLE_IN_2_34 G_UNAVAILABLE(2, 34) _GDK_PIXBUF_EXTERN
 #else
 #define GDK_PIXBUF_AVAILABLE_IN_2_34 _GDK_PIXBUF_EXTERN
 #endif
@@ -663,7 +663,7 @@
 
 #ifndef __GTK_DOC_IGNORE__
 #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_36
-#define GDK_PIXBUF_AVAILABLE_IN_2_36 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN
+#define GDK_PIXBUF_AVAILABLE_IN_2_36 G_UNAVAILABLE(2, 36) _GDK_PIXBUF_EXTERN
 #else
 #define GDK_PIXBUF_AVAILABLE_IN_2_36 _GDK_PIXBUF_EXTERN
 #endif


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