[gtk+/native-layout] [docs] Cast to GFunc in gtk_tree_selection_get_selected_rows() example code



commit 1abc649b8c33ee1d37f9ccb4c80eaad67139853a
Author: Javier Jardón <jjardon gnome org>
Date:   Fri Dec 18 04:34:15 2009 +0100

    [docs] Cast to GFunc in gtk_tree_selection_get_selected_rows() example code
    
    Reported by Diego Escalante Urrelo here:
    https://bugzilla.gnome.org/show_bug.cgi?id=502266

 gtk/gtktreeselection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c
index 9513f2b..4a275da 100644
--- a/gtk/gtktreeselection.c
+++ b/gtk/gtktreeselection.c
@@ -411,7 +411,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection  *selection,
  *
  * To free the return value, use:
  * |[
- * g_list_foreach (list, gtk_tree_path_free, NULL);
+ * g_list_foreach (list, (GFunc) gtk_tree_path_free, NULL);
  * g_list_free (list);
  * ]|
  *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]