Commit Graph

4 Commits

Author SHA1 Message Date
Jean Sirmai 794418e208
src/widget/main_window/design.c adding a title and a button in the header_bar
==3275== LEAK SUMMARY:
==3275==    definitely lost: 3,728 bytes in 52 blocks
==3275==    indirectly lost: 8,112 bytes in 337 blocks

no gtk_._unref() functions used

In previous valgrind report:
==23744== LEAK SUMMARY:
==23744==    definitely lost: 5,008 bytes in 54 blocks
==23744==    indirectly lost: 16,151 bytes in 673 blocks

reproducible result
2024-11-22 00:29:39 +01:00
Jean Sirmai 4c375c5405
src/widget/*, src/main.c: catching window::close-request signal, and a few renames
We create a window in the app activation and it needs to be closed properly,
freeing all ressources in the meantime. For now, there is only the picture
(E. coli) to free.

From now on, freeing window ressources will be done in
src/widget/manager.c:on_window_close_request().

Signed-off-by: Jean Sirmai <jean@a-lec.org>
2024-11-20 17:59:09 +01:00
Jean Sirmai e32427912d
src/fsm/log/oper.c fsm_add_log_event() fixing a bug
The bug was caused by pointers to local variables sended to fsm_add_log().
malloc() are now realized in fsm_add_log_event().

+ cleaning (checking that the sentence "This file is part of Gem-graph."
is systematicaly added to legal mentions.)
2024-11-20 17:59:09 +01:00
Jean Sirmai 05bb7c4ec2
src/widget/main_window/design First visible window (with memory leaks)
To display this minimal window, three files and two functions must be
added simultaneously:

- include/widget/h
- src/manager.c
- src/main_window/design.c

main() now contains: g_signal_connect (on_windows_activation);
on_windows_activation () is in src/manager.c and calls
widget_main_window () which is in src/main_window/design.c

NB  The iconic image of E coli drawn by David S. Goodsell in 2009
is reproduced here with permission.

One goal of Gem-graph is to animate such static representations
i.e. use the best anatomy to try to achieve good physiology.
2024-11-20 17:59:09 +01:00