WIP: (micro) cleaning

This commit is contained in:
Jean Sirmai 2023-11-25 08:14:39 +01:00
parent 9898be565d
commit e5b58345d3
Signed by: jean
GPG Key ID: FB3115C340E057E3
3 changed files with 13 additions and 9 deletions

View File

@ -126,5 +126,5 @@ void traverse_list_store (GtkListStore *liststore);
void onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path,
GtkTreeViewColumn *col, gpointer userdata);
void tree_c_printing_test(void);
void tree_c_test(void);

View File

@ -33,7 +33,7 @@
int main(int argc, char **argv)
{
tree_c_printing_test();
tree_c_test();
g_autoptr(GemGraphClientApplication) app = NULL;
int res;

View File

@ -32,6 +32,8 @@ GtkListStore *list_store;
GtkTreeStore *tree_store;
GtkTreeIter iter, child;
static void tree_c_printing_test(void);
/***********************************************************
* *
* Going through every row in a list store *
@ -91,7 +93,7 @@ onTreeViewRowActivated (GtkTreeView *view, GtkTreePath *path,
}
void
tree_c_printing_test(void)
tree_c_test(void)
{
list_store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_UINT);
@ -121,11 +123,13 @@ tree_c_printing_test(void)
/* Child will point to new row */
gtk_tree_store_append(tree_store, &child, &iter);
}
else
{
g_error("Oops, we should have a first row in the tree store!\n");
}
else g_error("Oops, we should have a first row in the tree store!\n");
tree_c_printing_test();
}
static void tree_c_printing_test(void)
{
printf("tree_c_printing_test() \
---------------------------------------------------------\n\n\