journal awaiting validation before systematic usage 😄

This commit is contained in:
Jean Sirmai 2024-09-23 10:24:45 +02:00
parent 004c7972cd
commit 46a29e1b1e
Signed by: jean
GPG Key ID: FB3115C340E057E3
5 changed files with 15 additions and 14 deletions

View File

@ -68,15 +68,16 @@ void fsm_journal_event (int severity,
const char *function_source,
const char *string_value)
{
if ( TRUE // just to find easily the line beginning the filter conditions 😄️
if ( // TRUE // just to find easily the line beginning the filter conditions 😄️
&& severity != REPETITIVE
severity != REPETITIVE
// source != TREE
// source == FSM
// strcmp (value, "")
&& TRUE) // just to find easily the line ending the filter conditions 😄️
// && TRUE) // just to find easily the line ending the filter conditions 😄️
// in case there are many ...
)
fsm_journal_push_front (&gg_logs, file_source, function_source, string_value);
}
@ -92,16 +93,16 @@ void fsm_init (char *initial_message_from_main)
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "fsm initialisation", "has began");
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "measures list init()", "");
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "measures list init() ...", "");
fsm_measures_list_init();
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "results list init()", "");
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "results list init() ...", "");
fsm_results_list_init();
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "displayables list init()", "");
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "displayables list init() ...", "");
fsm_displayable_list_init();
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "preferences list init()", "");
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "preferences list init() ...", "");
fsm_preferences_list_init();
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "fsm initialisation", "has ended");
@ -156,7 +157,7 @@ void fsm_set_exec_edit (int choice)
if (choice_EXEC_EDIT != choice)
{
fsm_journal_event (INFO, FSM, "fsm/dispatch", "set_exec_edit()",
concat (tab_0 [choice_EXEC_EDIT], " > ", tab_0 [choice], NULL));
concat (tab_0 [choice_EXEC_EDIT], " > ", tab_0 [choice], NULL));
choice_EXEC_EDIT = choice;
}
}
@ -166,7 +167,7 @@ void fsm_set_state_rules_data (int choice)
if (choice_STATE_RULES_DATA != choice)
{
fsm_journal_event (INFO, FSM, "fsm/dispatch", "set_state_rules_data()",
concat (tab_1 [choice_STATE_RULES_DATA], " > ", tab_1 [choice], NULL));
concat (tab_1 [choice_STATE_RULES_DATA], " > ", tab_1 [choice], NULL));
choice_STATE_RULES_DATA = choice;
}
}

View File

@ -130,11 +130,11 @@ void fsm_add_displayable (char *displayable_name)
/******************************************************************************/
void fsm_preferences_list_init ()
{
fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "preferences list < ready to use", "");
fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "fsm preferences list < ready to use", "");
}
void fsm_displayable_list_init ()
{
fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "displayables list < ready to use", "");
fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "fsm displayables list < ready to use", "");
}

View File

@ -346,7 +346,7 @@ void on_toggle_state_rules_data (GtkWidget *toggled_button, gpointer user_data)
const char *toggled_button_name
= gtk_check_button_get_label (GTK_CHECK_BUTTON (toggled_button));
fsm_journal_event (DEBUG, BUTTON,
"signal", "(toggle)", concat ("[ ", toggled_button_name, " ]", NULL));
"signal", "toggled button:", concat ("[", toggled_button_name, "]", NULL));
int is_active = gtk_check_button_get_active (GTK_CHECK_BUTTON (toggled_button));
if ( ! strcmp (toggled_button_name, "synth")) fsm_set_state_rules_data (SYNTH);

View File

@ -43,7 +43,7 @@ void *widget_get_btt_data () {return btt_DATA;}
void window_design_topbar_left (GtkWidget *header_bar)
{
fsm_journal_event (INFO, TOPBAR_LEFT, "widget/topbar/left", "design",
fsm_journal_event (INFO, TOPBAR_LEFT, "widget/topbar/left", "design (topbar left)",
"(EXEC / EDIT) and (SYNTH / STATE / RULES / DATA)");
gpointer no_local_data = NULL;

View File

@ -93,7 +93,7 @@ static void connect(GApplication *app, gpointer *data) { puts("Connect menu item
void window_design_topbar_right (GtkWidget *header_bar, GtkApplication *app)
{
fsm_journal_event (INFO, TOPBAR_RIGHT, "widget/topbar/right", "design (buttons, menus)", "");
fsm_journal_event (INFO, TOPBAR_RIGHT, "widget/topbar/right", "design (topbar right)", "");
display_widgets_at_the_right_side (header_bar);
GSimpleActionGroup *ga = g_simple_action_group_new ();