WIP: (micro) first step tuto : creating a new list store with two columns.

This commit is contained in:
Jean Sirmai 2023-11-24 16:34:06 +01:00
parent d315e5c76a
commit a814a2328f
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 10 additions and 2 deletions

View File

@ -28,10 +28,18 @@
#include "../../include/base.h" #include "../../include/base.h"
#include "../../include/ui.h" #include "../../include/ui.h"
GtkListStore *list_store;
void tree_c_printing_test(void) void tree_c_printing_test(void)
{ {
list_store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_UINT);
printf("tree_c_printing_test() \ printf("tree_c_printing_test() \
------------------------------------------------------\n\ ------------------------------------------------------\n\n\
trying : https://en.wikibooks.org/wiki/GTK\%\2B_By_Example/Tree_View/Tree_Models\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");
} }