WIP: the btt_toggle_STATE_RULES_DATA switches between : 'rules', 'state' and 'analyse'
This commit is contained in:
parent
c8e587137a
commit
0706aac1d3
12
callback.c
12
callback.c
|
@ -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");
|
// 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");
|
// 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 (0) printf ("callback.c (line 191) - current_label = %s\n", current_label);
|
||||||
// else if (! strcmp (current_label, " state ")) gtk_button_set_label (GTK_BUTTON (btt_toggle_STATE_RULES_DATA), "analyse");
|
|
||||||
// else if (! strcmp (current_label, "analyse")) 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 ");
|
||||||
|
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");
|
||||||
|
|
|
@ -177,7 +177,7 @@ void window_header_bar (GtkWindow *window, char *title){
|
||||||
GtkButton *run_stop_model_exec = GTK_BUTTON (gtk_button_new_with_label (" run "));
|
GtkButton *run_stop_model_exec = GTK_BUTTON (gtk_button_new_with_label (" run "));
|
||||||
g_signal_connect (run_stop_model_exec, "clicked", G_CALLBACK (on_toggle_model_exec), no_local_data);
|
g_signal_connect (run_stop_model_exec, "clicked", G_CALLBACK (on_toggle_model_exec), no_local_data);
|
||||||
|
|
||||||
GtkButton *btt_toggle_STATE_RULES_DATA = GTK_BUTTON (gtk_button_new_with_label ("rules"));
|
GtkButton *btt_toggle_STATE_RULES_DATA = GTK_BUTTON (gtk_button_new_with_label (" rules "));
|
||||||
g_signal_connect (btt_toggle_STATE_RULES_DATA, "clicked", G_CALLBACK (on_toggle_STATE_RULES_DATA), no_local_data);
|
g_signal_connect (btt_toggle_STATE_RULES_DATA, "clicked", G_CALLBACK (on_toggle_STATE_RULES_DATA), no_local_data);
|
||||||
|
|
||||||
// GtkButton *observ_interpret = GTK_BUTTON (gtk_button_new_with_label ("data analysis"));
|
// GtkButton *observ_interpret = GTK_BUTTON (gtk_button_new_with_label ("data analysis"));
|
||||||
|
|
Loading…
Reference in New Issue