diff options
author | Benjamin Otte <otte@redhat.com> | 2011-12-10 05:26:06 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-12-10 08:00:26 +0100 |
commit | 4dbedb748130370e77352dba26a4cb9a18751ba7 (patch) | |
tree | 3739e22ddcf2dcbeab368983c3bbaa022c67eaa0 /gtk/gtktreeselection.c | |
parent | 4d3986e709f46cf829e91f1382185a69f6e185c4 (diff) | |
download | gtk+-4dbedb748130370e77352dba26a4cb9a18751ba7.tar.gz |
docs: Update code demo for newer glib
Diffstat (limited to 'gtk/gtktreeselection.c')
-rw-r--r-- | gtk/gtktreeselection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c index 8ea86dce3c..071a87ba6d 100644 --- a/gtk/gtktreeselection.c +++ b/gtk/gtktreeselection.c @@ -554,8 +554,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection *selection, * * To free the return value, use: * |[ - * g_list_foreach (list, (GFunc) gtk_tree_path_free, NULL); - * g_list_free (list); + * g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free); * ]| * * Return value: (element-type GtkTreePath) (transfer full): A #GList containing a #GtkTreePath for each selected row. |