diff --git a/callback.c b/callback.c index 414dc9a..bbc79ab 100644 --- a/callback.c +++ b/callback.c @@ -187,7 +187,12 @@ void on_toggle_EXEC_EDIT (GtkWidget *btt_XOR_EXEC_EDIT, GtkWidget *btt_MODEL_RUN void on_open_STATE (GtkWidget *btt_open_STATE, gpointer data) { printf("on_open_STATE status = %d\n", get_status ()); - window_main_child (main_window, STATE); + printf("gtk_check_button_get_active > after = %d, %d, %d from callback : on_open_STATE()\n",\ + gtk_check_button_get_active (get_GtkButton ("state")), // (GTK_CHECK_BUTTON (btt_open_STATE)), + gtk_check_button_get_active (get_GtkButton ("rules")), // (GTK_CHECK_BUTTON (btt_open_RULES)), + gtk_check_button_get_active (get_GtkButton ("data analysis"))); // (GTK_CHECK_BUTTON (btt_open_DATA))); + + if (! gtk_check_button_get_active (get_GtkButton ("state"))) window_main_child (main_window, STATE); }// SWITCH_TO (STATE);} void on_open_RULES (GtkWidget *btt_open_RULES, gpointer data) { diff --git a/contain.c b/contain.c index 5bc5d18..f01eb0d 100644 --- a/contain.c +++ b/contain.c @@ -218,12 +218,12 @@ void window_header_bar (GtkWindow *window, char *title){ gtk_check_button_get_active (GTK_CHECK_BUTTON (btt_open_RULES)), gtk_check_button_get_active (GTK_CHECK_BUTTON (btt_open_DATA))); - gtk_check_button_set_active (GTK_CHECK_BUTTON (btt_open_STATE), TRUE); +// gtk_check_button_set_active (GTK_CHECK_BUTTON (get_GtkButton ("state")), TRUE); printf("gtk_check_button_get_active > after = %d, %d, %d\n",\ - gtk_check_button_get_active (GTK_CHECK_BUTTON (btt_open_STATE)), - gtk_check_button_get_active (GTK_CHECK_BUTTON (btt_open_RULES)), - gtk_check_button_get_active (GTK_CHECK_BUTTON (btt_open_DATA))); + gtk_check_button_get_active (get_GtkButton ("state")), // (GTK_CHECK_BUTTON (btt_open_STATE)), + gtk_check_button_get_active (get_GtkButton ("rules")), // (GTK_CHECK_BUTTON (btt_open_RULES)), + gtk_check_button_get_active (get_GtkButton ("data analysis"))); // (GTK_CHECK_BUTTON (btt_open_DATA))); gtk_header_bar_pack_start (GTK_HEADER_BAR (header_bar), GTK_WIDGET (btt_XOR_EXEC_EDIT)); gtk_header_bar_pack_start (GTK_HEADER_BAR (header_bar), GTK_WIDGET (btt_MODEL_RUN_STOP));