[gtk/bilelmoussaoui/trick-gir-list-position] gtk: trick g-ir scanner to add INVALID_LIST_POSITION




commit 4626cce5d74238f09a45f0dd75d995659d15b271
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Tue May 4 21:33:41 2021 +0000

    gtk: trick g-ir scanner to add INVALID_LIST_POSITION
    
    without it, the define doesn't get picked in the introspection data

 gtk/gtktypes.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktypes.h b/gtk/gtktypes.h
index 9b3b76390e..0a024b55bd 100644
--- a/gtk/gtktypes.h
+++ b/gtk/gtktypes.h
@@ -57,7 +57,7 @@ typedef struct _GtkWidget              GtkWidget;
 typedef struct _GtkWindow              GtkWindow;
 
 /**
- * GTK_INVALID_LIST_POSITION:
+ * GTK_INVALID_LIST_POSITION: (value 4294967295)
  *
  * The value used to refer to a guaranteed invalid position in a #GListModel. This
  * value may be returned from some functions, others may accept it as input.
@@ -66,7 +66,7 @@ typedef struct _GtkWindow              GtkWindow;
  * Refer to each function's documentation for if this value is allowed and what it
  * does.
  */
-#define GTK_INVALID_LIST_POSITION (G_MAXUINT)
+#define GTK_INVALID_LIST_POSITION (G_MAXUINT + 0)
 
 G_END_DECLS
 


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