WIP: the btt_toggle_STATE_RULES_DATA switches between : 'rules', 'state' and 'analyse'

This commit is contained in:
Jean Sirmai 2024-06-13 09:35:36 +02:00
parent c8e587137a
commit 0706aac1d3
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 8 additions and 6 deletions

View File

@ -190,12 +190,14 @@ void on_toggle_STATE_RULES_DATA (GtkWidget *btt_toggle_STATE_RULES_DATA, gpointe
// if (! strcmp (current_label, "rules")) printf ("callback.c (line 190) - strcomp +\n"); // if (! strcmp (current_label, "rules")) printf ("callback.c (line 190) - strcomp +\n");
// else printf ("callback.c (line 191) - strcomp -\n"); // else printf ("callback.c (line 191) - strcomp -\n");
if (! strcmp (current_label, "rules")) gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "state");
else gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "rules");
// if (! strcmp (current_label, "rules")) gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "state"); // if (! strcmp (current_label, "rules")) gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "state");
// else if (! strcmp (current_label, " state ")) gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "analyse"); // else gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "rules");
// else if (! strcmp (current_label, "analyse")) gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), " rules ");
if (0) printf ("callback.c (line 191) - current_label = %s\n", current_label);
if (! strcmp (current_label, " rules ")) gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), " state ");
else if (! strcmp (current_label, " state ")) gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "analyse");
else gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), " rules ");
// gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "state"); // gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "state");