GNOME Bugzilla – Bug 633261
annotate GtkTreeIter
Last modified: 2018-04-15 00:23:52 UTC
possible implemntation: 1. --- a/gtk/gtktreemodel.h +++ b/gtk/gtktreemodel.h @@ -50,7 +50,12 @@ typedef enum GTK_TREE_MODEL_ITERS_PERSIST = 1 << 0, GTK_TREE_MODEL_LIST_ONLY = 1 << 1 } GtkTreeModelFlags; - +/** + * GtkTreeIter: + * @user_data: (type glong): + * @user_data2: (type glong): + * @user_data3: (type glong): + */ struct _GtkTreeIter { gint stamp; 2. remove declaration of _GtkTreeIter (move it to .c file) 3. And more generic way. Change meaning of '(skip)' for structure member. We can just not wrap such member in bindings.
>+ * @user_data: (type glong): if g-i doesn't know about gintptr, then the right integer type to use for "pointer-sized" is gsize, not glong, because Win64 has 32-bit longs and 64-bit pointers. (In theory, there's no guarantee that sizeof(gsize)==sizeof(gpointer) either, but glib already makes that assumption elsewhere.)
For the Python bindings we only allow integers to be set as data for raw void pointers on structs (see bug 683599). But annotations might still be useful for other bindings. In any event this ticket belongs in GTK+.
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla. If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab: https://gitlab.gnome.org/GNOME/gtk/issues/new