summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-01-03 15:01:12 +0100
committerDaniel Boles <dboles@src.gnome.org>2018-01-07 16:38:41 +0000
commit6e197ffac975c983456d9ad109e14d0982e300ba (patch)
treee606f623f6ac469d906ee64a10cd39073957a4f9
parente00de3814e1427a1650494e84c24b2bcd7c6a7e1 (diff)
downloadgtk+-6e197ffac975c983456d9ad109e14d0982e300ba.tar.gz
liststore: Make a code snippet compile
-rw-r--r--gtk/gtkliststore.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c
index 8bf3eb19cd..39388ef401 100644
--- a/gtk/gtkliststore.c
+++ b/gtk/gtkliststore.c
@@ -2164,8 +2164,17 @@ gtk_list_store_has_default_sort_func (GtkTreeSortable *sortable)
* `gtk_list_store_insert_with_values (list_store, iter, position...)`
* has the same effect as calling
* |[<!-- language="C" -->
- * gtk_list_store_insert (list_store, iter, position);
- * gtk_list_store_set (list_store, iter, ...);
+ * static void
+ * insert_value (GtkListStore *list_store,
+ * GtkTreeIter *iter,
+ * int position)
+ * {
+ * gtk_list_store_insert (list_store, iter, position);
+ * gtk_list_store_set (list_store,
+ * iter
+ * // ...
+ * );
+ * }
* ]|
* with the difference that the former will only emit a row_inserted signal,
* while the latter will emit row_inserted, row_changed and, if the list store