types: Move GTK_INVALID_LIST_POSITION here

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.
This commit is contained in:
Benjamin Otte 2019-12-12 18:20:29 +01:00
parent d564cb2a7e
commit 552db7cb08
2 changed files with 12 additions and 12 deletions

View 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)

View 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__ */