From 9d1298ca7afc6cbd73bb4d2917d20aec296dde01 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Sat, 20 Jul 2024 19:20:01 +0200 Subject: [PATCH] OBJECTS_and_SITUATIONS boxes OK --- include/widget.h | 2 +- src/widget/state.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/widget.h b/include/widget.h index 446e30d..4518ec1 100644 --- a/include/widget.h +++ b/include/widget.h @@ -32,7 +32,7 @@ #include #define n_objects 32 -#define n_situations 64 +#define n_situations 128 /******************************************************************************/ /* W I N D O W S */ diff --git a/src/widget/state.c b/src/widget/state.c index dc5ae6c..dd954ce 100644 --- a/src/widget/state.c +++ b/src/widget/state.c @@ -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);