I set all windows to modal and updated their signals.
Further, I spent nearly half a day on trying to set the menu items to
non-sensitive while the opened document is being syhi'd:
In the file filesops.c, in the function open_filename, there's this code:
(...)
add_page_in_notebook (GTK_NOTEBOOK(MainNotebook), filename);
open_file_in_editor(GTK_WIDGET(FPROPS(OpenedFilesCnt - 1, Text)),
filename, OpenedFilesCnt - 1);
(...)
At the end of the function /add_page_in_notebook/, the menu items are
already set to sensitive, while the syntax highlighting still has to
be done in /open_file_in_editor/, by the function /refresh_editor/.
So I tried to replace the call /menu_set_files_open (TRUE);/ from/
add_page_in_notebook/ to several other places, like: at the end of
/open_file_in_editor/ and in /open_filename/ itself.
When running Beaver, this had the right effect, but after opening and
then re-opening some files from the recent files list, the program
crashed with a segfault in /display_recent_files/.
I tried all sorts of things, but always when taking
/menu_set_files_open (TRUE); /to a different place, I had this
segfault again.