diff --git a/src/signal.c b/src/signal.c index bb8e4af..356aa27 100644 --- a/src/signal.c +++ b/src/signal.c @@ -425,7 +425,7 @@ void on_situations_box_do_reset (GtkWidget *btt_reset, GtkScrollbar *reset_scrol void on_clicked_topbar_right_measure (GtkWidget *btt, gpointer data) { - fsm_journal_event (DEBUG, BUTTON, "signal", "clicked topbar right measure()", ""); + fsm_journal_event (DEBUG, BUTTON, "signal", "clicked topbar right measure()", "🧭️"); // fsm_measures_sorted_list_do something (); gtk_window_set_child (GTK_WINDOW (widget_get_main_window ()), GTK_WIDGET (widget_get_measure_page())); @@ -433,7 +433,8 @@ void on_clicked_topbar_right_measure (GtkWidget *btt, gpointer data) void on_start_new_measure (GtkWidget *btt, gpointer data) { - fsm_journal_event (DEBUG, BUTTON, "signal", "start new measure()", ""); + fsm_journal_event (DEBUG, BUTTON, "signal", "start a new measure()", + gtk_button_get_label (GTK_BUTTON (btt))); // gtk_label_get_text () ? TODO gtk_window_set_child (GTK_WINDOW (widget_get_main_window ()), GTK_WIDGET (widget_measure_do_select_rules_first())); } diff --git a/src/widget/all_rules/dispatch.c b/src/widget/all_rules/dispatch.c index 0712308..85a9dba 100644 --- a/src/widget/all_rules/dispatch.c +++ b/src/widget/all_rules/dispatch.c @@ -68,4 +68,3 @@ void *widget_get_all_rules_left_pane () return rules_tree_and_pilot_box; } - diff --git a/src/widget/measure/dispatch.c b/src/widget/measure/dispatch.c index d2ffd1b..a19b105 100644 --- a/src/widget/measure/dispatch.c +++ b/src/widget/measure/dispatch.c @@ -298,6 +298,12 @@ void *widget_get_measure_page() caliper = gtk_picture_new_for_filename ("./data/stamp/measure caliper icon.png"); btt_edit_a_new_measure = gtk_toggle_button_new_with_label ("edit a new measure"); + + printf("gtk_button_get_label (btt_edit_a_new_measure) = %s <---\ + \npourquoi est-ce que je n'arrive pas à afficher ce label dans le journal ? \n", + gtk_button_get_label (GTK_BUTTON (btt_edit_a_new_measure))); + // voir signal > void on_start_new_measure (GtkWidget *btt, gpointer data)) + g_signal_connect (btt_edit_a_new_measure, "toggled", G_CALLBACK (on_start_new_measure), NULL);