From d9745c0f6eb4e9c9a05dce94943495cb74d2600a Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Sat, 16 Dec 2023 13:16:41 +0100 Subject: [PATCH] =?UTF-8?q?WIP:=20Construction=20it=C3=A9rative=20de=20l'a?= =?UTF-8?q?rbre.=20=5Fappend()=20et=20=5Fset()=20dans=20iterate=5Fnode()?= =?UTF-8?q?=20(cleaning)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demos/gtk-demo/tree_store.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/demos/gtk-demo/tree_store.c b/demos/gtk-demo/tree_store.c index 1d599a1..b6ad0b4 100644 --- a/demos/gtk-demo/tree_store.c +++ b/demos/gtk-demo/tree_store.c @@ -67,13 +67,12 @@ static TreeItem C[] = {{ "H", H }, { NULL }}; static TreeItem B[] = {{ "E", E }, { "F", F }, { "G", G }, { NULL }}; static TreeItem A[] = {{ "C", C }, { "D", D }, { NULL }}; static TreeItem R[] = {{ "A", A }, { "B", B }, { NULL }}; -static TreeItem O[] = {{ "R", R }, { NULL }}; // Artefact added for symetry +static TreeItem O[] = {{ "R", R }, { NULL }}; // Artefact added for symmetry -// iterate_node(model, item_0, item_1, &iter, &child_iter); static void iterate_node(GtkTreeStore *model, - GtkTreeIter *iter_children, - TreeItem *item_children, - GtkTreeIter *iter_parent) + GtkTreeIter *iter_children, + TreeItem *item_children, + GtkTreeIter *iter_parent) { gtk_tree_store_append (model, iter_children, iter_parent); gtk_tree_store_set (model, iter_children, COLUMN_0, item_children->label, -1);