[gtk+] Fix gtk_tree_view_get_tooltip_context() transfer annotation
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix gtk_tree_view_get_tooltip_context() transfer annotation
- Date: Mon, 14 Nov 2011 13:34:31 +0000 (UTC)
commit 1c222372d9cae171236add8e3e08d9198cb39a2d
Author: Martin Pitt <martin pitt ubuntu com>
Date: Mon Nov 14 14:32:32 2011 +0100
Fix gtk_tree_view_get_tooltip_context() transfer annotation
The default (out) transfer mode is "full", but the passed "model" pointer gets
set to gtk_tree_view_get_model() which is "transfer none". This caused Python
programs to free the model after calling this, causing crashes.
gtk/gtktreeview.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 0160818..c1fe401 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -16286,7 +16286,8 @@ gtk_tree_view_set_tooltip_cell (GtkTreeView *tree_view,
* @x: (inout): the x coordinate (relative to widget coordinates)
* @y: (inout): the y coordinate (relative to widget coordinates)
* @keyboard_tip: whether this is a keyboard tooltip or not
- * @model: (out) (allow-none): a pointer to receive a #GtkTreeModel or %NULL
+ * @model: (out) (allow-none) (transfer none): a pointer to receive a
+ * #GtkTreeModel or %NULL
* @path: (out) (allow-none): a pointer to receive a #GtkTreePath or %NULL
* @iter: (out) (allow-none): a pointer to receive a #GtkTreeIter or %NULL
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]