diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-08-04 23:27:33 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-08-04 23:27:33 (GMT) |
commit | 61299213a1426f4aed38278f29af6a22246d91f9 (patch) | |
tree | 6cf7385c2d3dd43acf720fb3aae166dc7e9ab052 /src/main.c | |
parent | d1d91e68e9665db1808f31dc2310ba58ee5631fa (diff) |
Ensured all panel accelerators get activated.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -161,10 +161,10 @@ int main(int argc, char **argv) char *prj_filename; /* Chemin vers un projet */ int index; /* Indice d'argument */ int ret; /* Bilan d'un appel */ + bool status; /* Bilan d'opérations */ GtkWidget *editor; /* Fenêtre graphique */ GDbServer *server; /* Enregistrements locaux */ GGenConfig *config; /* Configuration globale */ - bool status; /* Bilan d'opérations */ char *author; /* Identification à diffuser */ @@ -278,6 +278,9 @@ int main(int argc, char **argv) if (!batch_mode) { + status = load_all_gui_components(); + if (!status) goto failed_to_load_editor; + editor = create_editor(); if (editor == NULL) goto failed_to_load_editor; @@ -289,8 +292,11 @@ int main(int argc, char **argv) config = get_main_configuration(); - status = complete_loading_of_all_gui_components(config); - if (!status) goto exit_complete_gui; + if (!batch_mode) + { + status = complete_loading_of_all_gui_components(config); + if (!status) goto exit_complete_gui; + } /* Utilisateur représenté */ @@ -387,6 +393,9 @@ int main(int argc, char **argv) failed_to_load_editor: + if (!batch_mode) + unload_all_gui_components(); + unload_all_basic_components(); done: |