OBJECTS_and_SITUATIONS boxes OK

This commit is contained in:
Jean Sirmai 2024-07-20 19:20:01 +02:00
parent d3e050641d
commit 9d1298ca7a
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@
#include <gtk-4.0/gtk/gtk.h>
#define n_objects 32
#define n_situations 64
#define n_situations 128
/******************************************************************************/
/* W I N D O W S */

View File

@ -105,7 +105,8 @@ static GtkBox *rec_OBJECTS_box()
GtkScrollbar *reset_scrollbar = GTK_SCROLLBAR (gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, reset_value));
gtk_box_append (objects_box, gtk_label_new (" ")); // AD HOC (pour "centrer")
gtk_box_append (objects_box, GTK_WIDGET (reset_scrollbar));
GtkWidget *btt_reset = gtk_toggle_button_new_with_label ("r\ne\ns\ne\nt");
GtkWidget *btt_reset = gtk_toggle_button_new ();
gtk_button_set_icon_name (GTK_BUTTON (btt_reset), "view-refresh-symbolic");
g_signal_connect (btt_reset, "toggled", G_CALLBACK (on_OBJECTS_box_DO_RESET), reset_scrollbar);
gtk_box_append (objects_box, btt_reset);
@ -148,7 +149,8 @@ static GtkBox *rec_SITUATIONS_box()
GtkScrollbar *reset_scrollbar = GTK_SCROLLBAR (gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, reset_value));
gtk_box_append (situations_box, gtk_label_new (" "));
gtk_box_append (situations_box, GTK_WIDGET (reset_scrollbar));
GtkWidget *btt_reset = gtk_toggle_button_new_with_label ("r\ne\ns\ne\nt");
GtkWidget *btt_reset = gtk_toggle_button_new ();
gtk_button_set_icon_name (GTK_BUTTON (btt_reset), "view-refresh-symbolic");
g_signal_connect (btt_reset, "toggled", G_CALLBACK (on_SITUATIONS_box_DO_RESET), reset_scrollbar);
gtk_box_append (situations_box, btt_reset);