]> Pileus Git - ~andy/gtk/commit
treednd: Remove (out) annotation for GtkSelectionData arg
authorTorsten Schönfeld <kaffeetisch@gmx.de>
Tue, 29 Jan 2013 23:11:29 +0000 (00:11 +0100)
committerTorsten Schönfeld <kaffeetisch@gmx.de>
Thu, 31 Jan 2013 20:36:37 +0000 (21:36 +0100)
commit843e5f9cb304feeb1c8e3345729ed0ee1297c96c
tree2d01bb3ccbb942e19442e632a8f3056aabeab0d9
parent5f1c7925670c3f283d7365b1c798eeb74f85f2d2
treednd: Remove (out) annotation for GtkSelectionData arg

gtk_tree_drag_source_drag_data_get's GtkSelectionData argument should not be
marked as (out) because:

a) GtkSelectionData is semi-private (it's declared in gtkselectionprivate.h),
and thus gobject-introspection has no knowledge of its fields or its size.
There is thus no way for language bindings to allocate GtkSelectionData.

b) Even if it was possible for language bindings to allocate GtkSelectionData,
a zeroed-out instance thus created would not be usable with
gtk_tree_drag_source_drag_data_get.  As far as I can tell, you need to
initialize its "target" member to the GdkAtom of "GTK_TREE_MODEL_ROW".
Language bindings have no way of knowing this, of course.

https://bugzilla.gnome.org/show_bug.cgi?id=692844
gtk/gtktreednd.c