Commit f4dee9b6 authored by Christoph Reiter's avatar Christoph Reiter 🐍 Committed by Matthias Clasen
Browse files

Fix transfer annotation for tree_model parameter of...

Fix transfer annotation for tree_model parameter of gtk_tree_get_row_drag_data() and add nullable, optional

The GtkSelectionData does not own the model set with
gtk_tree_set_row_drag_data so change the out param to "transfer none".
This fixes a crash after multiple DnD actions due to the bindings
stealing a reference each time this function is called.

This also adds nullable and optional annotations for tree_model and path while at it.
parent 9668962d
......@@ -305,8 +305,8 @@ gtk_tree_set_row_drag_data (GtkSelectionData *selection_data,
* gtk_tree_get_row_drag_data:
* @selection_data: a #GtkSelectionData
* @tree_model: (out): a #GtkTreeModel
* @path: (out): row in @tree_model
* @tree_model: (nullable) (optional) (transfer none) (out): a #GtkTreeModel
* @path: (nullable) (optional) (out): row in @tree_model
* Obtains a @tree_model and @path from selection data of target type
* %GTK_TREE_MODEL_ROW. Normally called from a drag_data_received handler.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment