[gtk+] docs: Update code demo for newer glib
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] docs: Update code demo for newer glib
- Date: Sat, 10 Dec 2011 07:01:21 +0000 (UTC)
commit 4dbedb748130370e77352dba26a4cb9a18751ba7
Author: Benjamin Otte <otte redhat com>
Date: Sat Dec 10 05:26:06 2011 +0100
docs: Update code demo for newer glib
gtk/gtktreeselection.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c
index 8ea86dc..071a87b 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]