journal removing deprecated files, cleaning

This commit is contained in:
Jean Sirmai 2024-09-23 12:21:36 +02:00
parent 36f2b6dd69
commit 1786f9fa16
Signed by: jean
GPG Key ID: FB3115C340E057E3
8 changed files with 17 additions and 483 deletions

View File

@ -1,3 +1,7 @@
pour les menus:
https://discourse.gnome.org/t/when-do-we-really-have-to-use-gtk-popover-present-to-show-a-popover-at-a-given-widget/17566/5
https://stackoverflow.com/questions/69135934/creating-a-simple-menubar-menu-and-menu-item-in-c-using-gtk4
--------------------------------------------------------------------------------
https://www.man-linux-magique.net/man3/gets.html

View File

@ -1,96 +0,0 @@
https://discourse.gnome.org/t/when-do-we-really-have-to-use-gtk-popover-present-to-show-a-popover-at-a-given-widget/17566/5
https://stackoverflow.com/questions/69135934/creating-a-simple-menubar-menu-and-menu-item-in-c-using-gtk4
#include <gtk/gtk.h>
static void action_clbk ( GSimpleAction *simple_action, G_GNUC_UNUSED GVariant *parameter, G_GNUC_UNUSED gpointer *data )
{
g_print ( "The action %s was clicked.\n", g_action_get_name ( G_ACTION ( simple_action ) ) );
}
static void activate ( GApplication *app, G_GNUC_UNUSED gpointer *data )
{
GtkWidget *win;
GSimpleAction *act_connect;
GSimpleAction *act_disconnect;
/// ***
GMenu *menu_bar;
GMenu *network_menu;
GMenu *server_menu;
/// ***
GMenuItem *menu_item_connect;
GMenuItem *menu_item_disconnect;
/// *** Menu Bar
menu_bar = g_menu_new();
/// *** Network_Menu
network_menu = g_menu_new();
g_menu_append_submenu ( menu_bar, "Network", G_MENU_MODEL ( network_menu ) );
/// *** Server_Menu
server_menu = g_menu_new();
g_menu_append_submenu ( network_menu, "Server", G_MENU_MODEL ( server_menu ) );
/// ***
win = gtk_application_window_new ( GTK_APPLICATION ( app ) );
gtk_window_set_title ( GTK_WINDOW ( win ), "IRC Client" );
gtk_window_set_default_size ( GTK_WINDOW ( win ), 400, 400 );
/// *** Create Connect and Disconnect Actions
act_connect = g_simple_action_new ( "connect", NULL );
act_disconnect = g_simple_action_new ( "disconnect", NULL );
/// *** Add them to the ActionMap
g_action_map_add_action ( G_ACTION_MAP ( app ), G_ACTION ( act_connect ) );
g_action_map_add_action ( G_ACTION_MAP ( app ), G_ACTION ( act_disconnect ) );
/// *** Connect them to the activate Signal
g_signal_connect ( act_connect, "activate", G_CALLBACK ( action_clbk ), NULL );
g_signal_connect ( act_disconnect, "activate", G_CALLBACK ( action_clbk ), NULL );
/// *** Create the Connect Item
menu_item_connect = g_menu_item_new ( "Connect", "app.connect" );
g_menu_append_item ( server_menu, menu_item_connect );
/// *** Create the Disconnect Item
menu_item_disconnect = g_menu_item_new ( "Disconnect", "app.disconnect" );
g_menu_append_item ( server_menu, menu_item_disconnect );
/// ***
gtk_application_set_menubar ( GTK_APPLICATION ( app ), G_MENU_MODEL ( menu_bar ) );
gtk_application_window_set_show_menubar ( GTK_APPLICATION_WINDOW ( win ), TRUE );
/// ***
gtk_window_present ( GTK_WINDOW ( win ) );
/// *** Clean
g_object_unref ( act_connect );
g_object_unref ( act_disconnect );
g_object_unref ( menu_item_connect );
g_object_unref ( menu_item_disconnect );
g_object_unref ( server_menu );
g_object_unref ( network_menu );
g_object_unref ( menu_bar );
}
int main ( int argc, char **argv )
{
GtkApplication *app;
int stat;
/// ***
app = gtk_application_new ( "com.ircclient", G_APPLICATION_FLAGS_NONE );
g_signal_connect ( app, "activate", G_CALLBACK ( activate ), NULL );
/// ***
stat = g_application_run ( G_APPLICATION ( app ), argc, argv );
g_object_unref ( app );
/// ***
return stat;
}

View File

@ -1,288 +0,0 @@
jean@n-guix-port:~/Gem-Graph/gem-graph-client [env] $ make run
DEP build/src/fsm/journal.d
CC build/src/fsm/journal.o
LD bin/gem-graph-client
bin/gem-graph-client
09/11/24 23:52:04 > 269928 < fsm_init() start
09/11/24 23:52:04 > 269932 < fsm_measures_list_init()
09/11/24 23:52:04 > 269932 < fsm_results_list_init()
09/11/24 23:52:04 > 269932 < fsm_displayable_list_init()
09/11/24 23:52:04 > 269932 < fsm_preferences_init()
09/11/24 23:52:04 > 269933 < fsm_init() end
09/11/24 23:52:04 > 293764 < on_windows_startup_event() is in: widget/dispatch.c NOT in: src/signal.c
09/11/24 23:52:04 > 293768 < on_windows_activation() is in: widget/dispatch.c NOT in: src/signal.c
09/11/24 23:52:04 > 295870 < signal > on_toggle_state_rules_data()
09/11/24 23:52:04 > 295874 < signal > switch_state_rules_data()
09/11/24 23:52:04 > 396763 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397502 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397537 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397567 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397585 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397608 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397623 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397645 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397659 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397680 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397694 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397715 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397729 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397750 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397764 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397784 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397803 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397826 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397840 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397861 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397875 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397896 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397910 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397931 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 397944 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 397965 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398025 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398048 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398063 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398084 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398098 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398119 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398132 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398153 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398167 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398190 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398204 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398231 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398245 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398272 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398286 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398313 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398327 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398353 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398367 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398397 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398411 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398438 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398452 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398479 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398493 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398520 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398534 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398560 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398575 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398601 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398615 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398641 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398654 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398681 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398695 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398722 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398736 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398763 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398777 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398803 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398817 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398846 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398860 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398887 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398901 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398928 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398942 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 398969 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 398983 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 399009 < signal > on_bind_user_tree_factory()
09/11/24 23:52:04 > 399023 < signal > on_setup_user_tree_factory()
09/11/24 23:52:04 > 399050 < signal > on_bind_user_tree_factory()
09/11/24 23:52:06 > 440093 < signal > on_toggle_state_rules_data()
09/11/24 23:52:06 > 440337 < signal > on_toggle_state_rules_data()
09/11/24 23:52:06 > 440338 < signal > switch_state_rules_data()
09/11/24 23:52:07 > 486290 < signal > on_toggle_state_rules_data()
09/11/24 23:52:07 > 486473 < signal > on_toggle_state_rules_data()
09/11/24 23:52:07 > 486475 < signal > switch_state_rules_data()
09/11/24 23:52:08 > 390351 < signal > on_toggle_state_rules_data()
09/11/24 23:52:08 > 390491 < signal > on_toggle_state_rules_data()
09/11/24 23:52:08 > 390492 < signal > switch_state_rules_data()
09/11/24 23:52:08 > 496247 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496311 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496333 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496364 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496381 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496409 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496493 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496521 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496541 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496568 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496584 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496610 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496625 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496654 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496669 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496696 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496711 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496737 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496752 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496778 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496793 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496818 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496833 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496859 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496873 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496899 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496914 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496940 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496954 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 496980 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 496995 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497021 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497036 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497061 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497076 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497102 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497117 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497142 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497157 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497185 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497200 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497225 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497240 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497268 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497283 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497309 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497324 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497349 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497364 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497390 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497405 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497431 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497446 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497471 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497486 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497512 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497527 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497553 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497568 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 497594 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 497608 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498042 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 498062 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498092 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 498108 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498135 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 498151 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498177 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 498192 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498218 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 498232 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498259 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 498275 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498302 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 498317 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498343 < signal > on_bind_user_tree_factory()
09/11/24 23:52:08 > 498359 < signal > on_setup_user_tree_factory()
09/11/24 23:52:08 > 498386 < signal > on_bind_user_tree_factory()
09/11/24 23:52:09 > 348398 < signal > on_toggle_state_rules_data()
09/11/24 23:52:09 > 348567 < signal > on_toggle_state_rules_data()
09/11/24 23:52:09 > 348568 < signal > switch_state_rules_data()
09/11/24 23:52:10 > 484266 < signal > on_toggle_exec_edit()
09/11/24 23:52:10 > 484313 < signal > switch_state_rules_data()
09/11/24 23:52:12 > 912247 < signal > on_toggle_exec_edit()
09/11/24 23:52:12 > 912294 < signal > switch_state_rules_data()
09/11/24 23:52:14 > 234231 < signal > on_toggle_state_rules_data()
09/11/24 23:52:14 > 234402 < signal > on_toggle_state_rules_data()
09/11/24 23:52:14 > 234403 < signal > switch_state_rules_data()
09/11/24 23:52:14 > 333149 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333199 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333219 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333250 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333267 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333295 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333310 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333338 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333353 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333380 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333396 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333422 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333437 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333463 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333478 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333505 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333520 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333548 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333563 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333592 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333608 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333635 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333651 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333679 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333694 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333722 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333737 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333763 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333778 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333805 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333820 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333847 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333862 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333888 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333903 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333932 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333946 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 333975 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 333990 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334018 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334032 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334059 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334073 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334100 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334114 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334141 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334156 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334182 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334197 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334223 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334237 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334264 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334278 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334305 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334319 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334345 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334359 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334391 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334407 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334434 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334448 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334474 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334489 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334515 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334529 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334555 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334570 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334596 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334611 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334637 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334651 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334677 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334692 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334718 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334733 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334759 < signal > on_bind_user_tree_factory()
09/11/24 23:52:14 > 334774 < signal > on_setup_user_tree_factory()
09/11/24 23:52:14 > 334801 < signal > on_bind_user_tree_factory()
09/11/24 23:52:15 > 220421 < signal > on_toggle_state_rules_data()
09/11/24 23:52:15 > 220583 < signal > on_toggle_state_rules_data()
09/11/24 23:52:15 > 220585 < signal > switch_state_rules_data()
09/11/24 23:52:16 > 286371 < signal > on_toggle_exec_edit()
09/11/24 23:52:16 > 286393 < signal > switch_state_rules_data()
09/11/24 23:52:20 > 162520 < signal > on_clicked_topbar_right_measure()
09/11/24 23:52:21 > 382219 < signal > on_start_new_measure()
09/11/24 23:52:22 > 28227 < signal > on_select_rules_first()
09/11/24 23:52:22 > 744336 < signal > on_measure_depends_on_a_single_event()
09/11/24 23:52:23 > 480264 < signal > on_measure_single_event_occurences_nb()
09/11/24 23:52:23 > 480267 < signal > on_select_a_second_measurement()
09/11/24 23:52:27 > 282269 < signal > on_toggle_state_rules_data()
09/11/24 23:52:27 > 282442 < signal > on_toggle_state_rules_data()
09/11/24 23:52:27 > 282443 < signal > switch_state_rules_data()
09/11/24 23:52:29 > 210047 < signal > on_clicked_topbar_right_search()
09/11/24 23:52:32 > 672067 < signal > on_clicked_topbar_right_home()
view journal (n = 279)
jean@n-guix-port:~/Gem-Graph/gem-graph-client [env] $

View File

@ -138,7 +138,7 @@ void fsm_engine_init(); // def: fsm/engine/engine; call main
void fsm_preferences_list_init(); // def: fsm/prefer; call: fsm/dispatch;
void fsm_measures_list_init(); // def: fsm/measure/manage.c; call: fsm/dispatch;
void fsm_results_list_init(); // def: fsm/results; call: fsm/dispatch;
void fsm_displayable_list_init(); // def: fsm/prefer; call: fsm/dispatch;
void fsm_displayables_list_init(); // def: fsm/prefer; call: fsm/dispatch;
int fsm_get_exec_edit(); // def: fsm/dispatch; call: signal;
// widget/state/dispatch;

View File

@ -60,7 +60,7 @@ static journal gg_logs;
void fsm_journal_publication_request () {fsm_journal_publish (gg_logs);}
// CRITICAL ERROR WARNING INFO MESSAGE DEBUG SPEW (bye bye REPETITIVE 2024-09-23)
// CRITICAL ERROR WARNING INFO MESSAGE DEBUG SPEW
// 0 1 2 3 4 5 6
void fsm_journal_event (int severity,
int source,
@ -68,17 +68,11 @@ 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
(
severity < SPEW
// source != TREE
// source == FSM
// strcmp (value, "")
// && TRUE) // just to find easily the line ending the filter conditions 😄️
// in case there are many ...
// && source == RULE_CONDITION
)
fsm_journal_push_front (&gg_logs, file_source, function_source, string_value);
}
@ -93,16 +87,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_displayable_list_init();
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "displayables list init()", "");
fsm_displayables_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");

View File

@ -133,7 +133,7 @@ void fsm_preferences_list_init ()
fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "fsm preferences list < ready to use", "");
}
void fsm_displayable_list_init ()
void fsm_displayables_list_init ()
{
fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "fsm displayables list < ready to use", "");
}

View File

@ -59,7 +59,7 @@ void *widget_get_btt_conditions_list()
fsm_journal_event (SPEW,
RULE_CONDITION,
"one_rule/algebra/conditions",
"conditions list ",
"get conditions list()",
one_condition);
}
GtkWidget *pop = gtk_popover_new ();

View File

@ -1,80 +0,0 @@
//------------------------------------------------------------------------------------
static void fsm_journal_get_event_date (char **event)
{
struct timeval tv;
gettimeofday (&tv, NULL);
long yy_dd_mm = tv.tv_sec;
long usec = tv.tv_usec;
//strftime (buf1, JOURNAL_DATE_MAX_LENGTH, "%D %T", localtime (&yy_dd_mm));
//printf ("%s + %6ld %6d ", buf1, usec, nb);
printf(*event);// = "ldkvbhej xadrhsjfvrejhs";
}
void fsm_journal_publish (journal jj, char *message)
{
unit *a_unit = jj.last;
char buf [JOURNAL_DATE_MAX_LENGTH];
int nb = 0;
while (a_unit)
{
// Format time, "ddd yyyy-mm-dd hh:mm:ss zzz" "%Y-%m-%d %H:%M:%S"
// https://www.man7.org/linux/man-pages/man3/strftime.3.html
strftime(buf, sizeof(buf), "%D %T", localtime(&a_unit->yy_dd_mm));
printf ("%s + %6ld %6d %s\n", buf, a_unit->usec, nb, a_unit->message);
a_unit = a_unit->prev;
nb ++;
}
// char *event [JOURNAL_DATE_MAX_LENGTH] = "gyufgbyfjuvfde";
int **p_event [JOURNAL_DATE_MAX_LENGTH];
fsm_journal_get_event_date (*p_event); // TODO
printf ("%s\n", message);
}
// https://nicolasj.developpez.com/articles/libc/string/
// https://thelinuxcode.com/pass-string-function-c-language/
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
jean@n-guix-port:~/Gem-Graph/gem-graph-client [env] $ make run
DEP build/src/fsm/journal.d
src/fsm/journal.c: Dans la fonction « fsm_journal_get_event_date »:
src/fsm/journal.c:55:10: attention: variable inutilisée « usec » [-Wunused-variable]
55 | long usec = tv.tv_usec;
| ^~~~
src/fsm/journal.c:54:10: attention: variable inutilisée « yy_dd_mm » [-Wunused-variable]
54 | long yy_dd_mm = tv.tv_sec;
| ^~~~~~~~
src/fsm/journal.c: Dans la fonction « fsm_journal_publish »:
src/fsm/journal.c:155:5: attention: « event » est utilisé sans avoir été initialisé [-Wuninitialized]
155 | fsm_journal_get_event_date (*event); // TODO
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/fsm/journal.c:154:12: note: « event » déclaré ici
154 | char **event [JOURNAL_DATE_MAX_LENGTH];
| ^~~~~
CC build/src/fsm/journal.o
LD bin/gem-graph-client
bin/gem-graph-client
09/14/24 10:05:10 + 772883 0 fsm fsm_init() start
09/14/24 10:05:10 + 772887 1 fsm fsm_measures_list_init()
09/14/24 10:05:10 + 772887 2 fsm fsm_results_list_init()
09/14/24 10:05:10 + 772887 3 prefer fsm_displayable_list_init()
09/14/24 10:05:10 + 772887 4 fsm fsm_displayable_list_init()
09/14/24 10:05:10 + 772887 5 prefer fsm_preferences_init()
09/14/24 10:05:10 + 772887 6 fsm fsm_preferences_init()
09/14/24 10:05:10 + 772887 7 fsm fsm_init() end
09/14/24 10:05:10 + 796793 8 widget on_windows_startup()
09/14/24 10:05:10 + 796798 9 widget on_windows_activation()
09/14/24 10:05:10 + 798832 10 signal on_toggle_state_rules_data()
09/14/24 10:05:10 + 798835 11 signal switch_state_rules_data()
main That'all folks ! 👋️😄️
jean@n-guix-port:~/Gem-Graph/gem-graph-client [env] $