src/widget/state/middle.c: call ui_setup_glarea + fix copyright header

This commit is contained in:
Adrien Bourmault 2024-09-10 12:10:45 +02:00
parent c6ed3c5c0f
commit ea1030f67d
1 changed files with 19 additions and 27 deletions

View File

@ -1,30 +1,26 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Gem-graph client *
* *
* State *
* *
* Copyright © 2021 Libre en Communs <contact@a-lec.org> *
* Copyright © 2021 Jean Sirmai <jean@a-lec.org> *
* Copyright © 2023-2024 Adrien Bourmault <neox@a-lec.org> *
* Copyright © 2024 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. *
* as publishedby 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. *
* 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 "../../../include/fsm.h"
@ -91,12 +87,8 @@ static void *get_ZOOM_box()
void *widget_get_space_view(int partition_space_vs_camera)
{
GtkBox *E_coli = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0));
gtk_box_append (GTK_BOX (E_coli), GTK_WIDGET (gtk_picture_new_for_filename
("/home/jean/Gem-Graph/gem-graph-client/data/image/E coli by D Goodsell.png")));
gtk_widget_set_size_request (GTK_WIDGET (E_coli), 0, H_E_COLI); // (provisoire) TODO
// TODO replace this image by >> ui_setup_glarea (0, GTK_WIDGET (~));
GtkBox *drawbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0));
ui_setup_glarea (GTK_BOX (drawbox));
GtkBox *camera = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
gtk_box_append (camera, GTK_WIDGET (get_XYZ_box()));
@ -104,7 +96,7 @@ void *widget_get_space_view(int partition_space_vs_camera)
gtk_box_append (camera, GTK_WIDGET (get_ZOOM_box()));
GtkWidget *view_space_vs_camera = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_paned_set_start_child (GTK_PANED (view_space_vs_camera), GTK_WIDGET (E_coli));
gtk_paned_set_start_child (GTK_PANED (view_space_vs_camera), GTK_WIDGET (drawbox));
gtk_paned_set_end_child (GTK_PANED (view_space_vs_camera), GTK_WIDGET (camera));
gtk_paned_set_shrink_start_child (GTK_PANED (view_space_vs_camera), FALSE);
gtk_paned_set_shrink_end_child (GTK_PANED (view_space_vs_camera), FALSE);