2023-11-09 06:58:48 +01:00
|
|
|
/*
|
|
|
|
* 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"
|
|
|
|
|
2023-11-24 16:34:06 +01:00
|
|
|
GtkListStore *list_store;
|
|
|
|
|
|
|
|
|
2023-11-24 16:25:56 +01:00
|
|
|
void tree_c_printing_test(void)
|
|
|
|
{
|
2023-11-24 16:34:06 +01:00
|
|
|
list_store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_UINT);
|
|
|
|
|
2023-11-24 16:25:56 +01:00
|
|
|
printf("tree_c_printing_test() \
|
2023-11-24 16:34:06 +01:00
|
|
|
------------------------------------------------------\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");
|
2023-11-24 16:25:56 +01:00
|
|
|
}
|
2023-11-09 06:58:48 +01:00
|
|
|
|