diff options
author | Christian Dywan <christian@lanedo.com> | 2010-08-09 21:35:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-08-09 21:35:26 -0400 |
commit | 2a12f74c8e8334d7b1f7629b99fd3e23f0f8a3af (patch) | |
tree | 925ce6d6668cfb8341e436c8d58ca16db55ffb2e /gtk/gtktreestore.c | |
parent | 0824862e3be0e696a0ab117bf25ee026a468b16e (diff) | |
download | gtk+-2a12f74c8e8334d7b1f7629b99fd3e23f0f8a3af.tar.gz |
Clarify memory management of tree models
It helps to be explicit about these things.
Bug 609264.
Diffstat (limited to 'gtk/gtktreestore.c')
-rw-r--r-- | gtk/gtktreestore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index 4570007018..7047dfb861 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -1073,7 +1073,9 @@ gtk_tree_store_set_valist (GtkTreeStore *tree_store, * The list is terminated by a -1. For example, to set column 0 with type * %G_TYPE_STRING to "Foo", you would write * <literal>gtk_tree_store_set (store, iter, 0, "Foo", -1)</literal>. - * The value will be copied or referenced by the store if appropriate. + * + * The value will be referenced by the store if it is a %G_TYPE_OBJECT, and it + * will be copied if it is a %G_TYPE_STRING or %G_TYPE_BOXED. **/ void gtk_tree_store_set (GtkTreeStore *tree_store, |