After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 633261 - annotate GtkTreeIter
annotate GtkTreeIter
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks: 632109
 
 
Reported: 2010-10-27 11:37 UTC by Maxim Ermilov
Modified: 2018-04-15 00:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Maxim Ermilov 2010-10-27 11:37:21 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.
Comment 1 Dan Winship 2010-10-27 12:42:18 UTC
>+ * @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.)
Comment 2 Simon Feltman 2013-09-13 22:11:57 UTC
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+.
Comment 3 Matthias Clasen 2018-02-10 05:04:53 UTC
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.
Comment 4 Matthias Clasen 2018-04-15 00:23:52 UTC
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