diff --git a/contain.c b/contain.c index 87b9660..11b274c 100644 --- a/contain.c +++ b/contain.c @@ -1,12 +1,11 @@ #include #include -#include "cold.h" +//#include "cold.h" #include "display.h" #include "contain.h" #include "texts.h" -// https://docs.gtk.org/gtk4/section-text-widget.html GtkWidget *get_edit_rules_page_new(){ GtkWidget *xxx_grid = gtk_grid_new(); diff --git a/contain.d b/contain.d index 6e9257d..3bf0f25 100644 --- a/contain.d +++ b/contain.d @@ -1 +1 @@ -contain.o: contain.c cold.h display.h contain.h texts.h +contain.o: contain.c display.h contain.h texts.h diff --git a/contain.h b/contain.h index 7745a15..05835ab 100644 --- a/contain.h +++ b/contain.h @@ -36,3 +36,4 @@ GtkWidget *get_edit_discuss_page_new(); GtkWidget *get_edit_help_page_new(); */ + diff --git a/contain.o b/contain.o index 2227745..6edd514 100644 Binary files a/contain.o and b/contain.o differ diff --git a/display.c b/display.c index 8a4f856..f842aa6 100644 --- a/display.c +++ b/display.c @@ -133,17 +133,23 @@ static GtkBox *get_situations_box(){ } static GtkWidget *get_frame_objects(){ + GtkWidget *scroll = gtk_scrolled_window_new (); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER); GtkWidget *frame_objects = gtk_frame_new (" Objects"); // defines each class of object transparence gtk_widget_set_size_request (frame_objects, 0, H_STYLES_PANE); // < utile seulement pour la largeur min/max gtk_frame_set_child (GTK_FRAME (frame_objects), GTK_WIDGET (get_objects_box())); - return frame_objects; + gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scroll), frame_objects); + return scroll; } static GtkWidget *get_frame_situations(){ + GtkWidget *scroll = gtk_scrolled_window_new (); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER); GtkWidget *frame_situations = gtk_frame_new (" Situations"); // facilitates each situation identification gtk_widget_set_size_request (GTK_WIDGET (frame_situations), 0, H_STYLES_PANE); // < utile seulement pour la largeur min/max gtk_frame_set_child (GTK_FRAME (frame_situations), GTK_WIDGET (get_situations_box())); - return frame_situations; + gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scroll), frame_situations); + return scroll; } GtkWidget *get_OBJECTS_and_SITUATIONS(){ diff --git a/display.o b/display.o index 76f9881..6fb525f 100644 Binary files a/display.o and b/display.o differ diff --git a/hot.c b/hot.c index 6f95185..6335ed2 100644 --- a/hot.c +++ b/hot.c @@ -9,6 +9,7 @@ // https://forge.a-lec.org/gem-graph/gem-graph-client/src/branch/devel/Makefile // https://docs.gtk.org/gtk4/visual_index.html < widgets gallery +// https://docs.gtk.org/gtk4/section-text-widget.html // https://docs.gtk.org/gtk4/class.Widget.html#height-for-width-geometry-management // GTK_ORIENTATION_VERTICAL GTK_ORIENTATION_HORIZONTAL diff --git a/myprogram b/myprogram index c61b0bc..573fbae 100755 Binary files a/myprogram and b/myprogram differ