types: Move GTK_INVALID_LIST_POSITION here
authorBenjamin Otte <otte@redhat.com>
Thu, 12 Dec 2019 17:20:29 +0000 (18:20 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 12 Dec 2019 18:10:45 +0000 (19:10 +0100)
I have no idea where it should go really - maybe glib?

It certainly shouldn't require everybody including selectionmodel code
just to get at this value.

gtk/gtksingleselection.h
gtk/gtktypes.h

index 74107fcc06b433a9bab451b23d5d3b18281b0ca2..f9bbcae9e97f0c557de014c9a5b65be7dc3145ff 100644 (file)
@@ -26,18 +26,6 @@ G_BEGIN_DECLS
 
 #define GTK_TYPE_SINGLE_SELECTION (gtk_single_selection_get_type ())
 
-/**
- * GTK_INVALID_LIST_POSITION:
- *
- * 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.
- * Its interpretion may differ for different functions.
- *
- * Refer to each function's documentation for if this value is allowed and what it
- * does.
- */
-#define GTK_INVALID_LIST_POSITION (G_MAXUINT)
-
 GDK_AVAILABLE_IN_ALL
 G_DECLARE_FINAL_TYPE (GtkSingleSelection, gtk_single_selection, GTK, SINGLE_SELECTION, GObject)
 
index 83a462448d795932c0d0540f15d16a9faf956733..d8ad82be0fab947c298dd05aac42adfde4b42605 100644 (file)
@@ -58,6 +58,18 @@ typedef GClosure*       (* GtkBuilderClosureFunc)               (GtkBuilder
                                                                  gpointer                user_data,
                                                                  GError                **error);
 
+/**
+ * GTK_INVALID_LIST_POSITION:
+ *
+ * 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.
+ * Its interpretion may differ for different functions.
+ *
+ * Refer to each function's documentation for if this value is allowed and what it
+ * does.
+ */
+#define GTK_INVALID_LIST_POSITION (G_MAXUINT)
+
 G_END_DECLS
 
 #endif /* __GTK_TYPES_H__ */