The Re-load All feature is implemented with a check if the files are modified inside the memory buffer. The buttons on the info_bar are drawn vertically, as there can be as much as five options, depending on the scenario, see picture below. See also the discussion [here.](https://github.com/geany/geany/issues/2540)
![geany_vertical](https://github.com/geany/geany/assets/7198614/c7864dcc-2e4c-4c55-9cf0-5aa8cb...)
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3722
-- Commit Summary --
* Draft implementation of reload-all. Messy GUI and RESPONSE_DOCUMENT_RELOAD_ALL not handled correctly. * Created bool unmodified_files_present to make gui button optional. * Merge branch 'geany:master' into re-load-all * Replaced fixed size number of button arguments with variable sized array of buttons (and responses) in document_show_message(). * Re-load All feature works functionally (but GUI needs re-work): detection if buffers are modified is built-in and user is offered a choice to reload all (and drop buffer modifications), reload only unmodified ones, or only the document in focus. * Connected File->Re-load button and updated description. * Switched to vertical buttons inside info_bar to avoid crowded Gtk-boxes.
-- File Changes --
M COMMITTERS (1) M THANKS (2) M data/geany.glade (11) M src/callbacks.c (63) M src/callbacks.h (2) M src/dialogs.c (2) M src/document.c (674) M src/document.h (35) M src/documentprivate.h (9) M src/editor.c (4) M src/keybindings.c (5) M src/libmain.c (4)
-- Patch Links --
https://github.com/geany/geany/pull/3722.patch https://github.com/geany/geany/pull/3722.diff
@peter-scholtens pushed 1 commit.
09d1687554125cfdb19eb9dc9e09e3021a87ebef Merge branch 'geany:master' into re-load-all
@peter-scholtens pushed 1 commit.
59dd6a99286f9a60508dfc6190ad760890cede6c Merge branch 'geany:master' into re-load-all
@peter-scholtens pushed 1 commit.
1a011193fb9694fd823736f2d7cca8c2125ee17e Merge branch 'geany:master' into re-load-all
@peter-scholtens pushed 1 commit.
be0d5c69c0a9a92ebafc63f0154dd11dd8bf54a7 Merge branch 'geany:master' into re-load-all
@peter-scholtens pushed 1 commit.
50218aea00d363a69674466693dfae1c7a86168c Merge branch 'geany:master' into re-load-all
github-comments@lists.geany.org