gem-graph-client/src/ui/tree.c

46 lines
1.5 KiB
C
Raw Normal View History

/*
* Gem-graph OpenGL experiments
*
* Desc: User interface functions
*
* Copyright (C) 2023 Jean Sirmai <jean@a-lec.org>
*
* This file is part of Gem-graph.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <unistd.h>
#include <gtk-4.0/gtk/gtk.h>
#include <glib-2.0/glib.h>
#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\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");
}