From a814a2328fb62898ad795ebde13fc4f4e5baa6ae Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Fri, 24 Nov 2023 16:34:06 +0100 Subject: [PATCH] WIP: (micro) first step tuto : creating a new list store with two columns. --- src/ui/tree.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ui/tree.c b/src/ui/tree.c index 5dae879..f8265ae 100644 --- a/src/ui/tree.c +++ b/src/ui/tree.c @@ -28,10 +28,18 @@ #include "../../include/base.h" #include "../../include/ui.h" +GtkListStore *list_store; + + void tree_c_printing_test(void) { + list_store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_UINT); + printf("tree_c_printing_test() \ -------------------------------------------------------\n\ -trying : https://en.wikibooks.org/wiki/GTK\%\2B_By_Example/Tree_View/Tree_Models\n"); +------------------------------------------------------\n\n\ +trying : https://en.wikibooks.org/wiki/GTK\%\2B_By_Example/Tree_View/Tree_Models\n\n\ +cf. tuto : This creates a new list store with two columns.\n\ +Column 0 stores a string and column 1 stores an unsigned integer for each row.\n\ +At this point the model has no rows yet of course.\n"); }