summaryrefslogtreecommitdiff
path: root/src/gui/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editor.c')
-rw-r--r--src/gui/editor.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index f45acbd..bdd9a78 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -36,6 +36,7 @@
#include "agroup.h"
#include "status.h"
+#include "dialogs/loading.h"
#include "menus/file.h"
#include "menus/menubar.h"
#include "core/core.h"
@@ -59,7 +60,9 @@
-
+/* Fenêtre de chargement de binaires */
+static GtkWidget *_load_dialog = NULL;
+static GtkBuilder *_load_dialog_builder = NULL;
@@ -308,7 +311,9 @@ GtkWidget *create_editor(void)
change_editor_items_current_content(NULL);
change_editor_items_current_view(NULL);
+ /* Préparation des fenêtres complémentaires */
+ _load_dialog = create_loading_dialog(GTK_WINDOW(result), &_load_dialog_builder);
return result;
@@ -323,7 +328,7 @@ GtkWidget *create_editor(void)
* *
* Description : Quitte le programme en sortie de la boucle de GTK. *
* *
-* Retour : - *
+* Retour : TRUE pour éviter la fermeture, FALSE sinon. *
* *
* Remarques : - *
* *
@@ -897,11 +902,9 @@ static void notify_editor_project_change(GStudyProject *project, bool new)
static void on_editor_content_available(GStudyProject *project, GLoadedContent *content, void *unused)
{
- g_object_ref(G_OBJECT(content));
-
- g_signal_connect(content, "analyzed", G_CALLBACK(on_loaded_content_analyzed), project);
+ add_content_to_loading_dialog(_load_dialog_builder, content, project);
- g_loaded_content_analyze(content, true, true);
+ gtk_widget_show(_load_dialog);
}