summaryrefslogtreecommitdiff
path: root/src/gui/core/global.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-27 09:47:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-27 10:07:59 (GMT)
commitacd37cbf8578686d2e5bae64b6b4eb6d2bc5376b (patch)
treec3ec34400c422ccd3e0f122ae6c0ec7ea67e37de /src/gui/core/global.c
parent8ca477e012b11a19363542d171b8e973d637641c (diff)
Deleted the reference to the main window in all panels.
Diffstat (limited to 'src/gui/core/global.c')
-rw-r--r--src/gui/core/global.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/gui/core/global.c b/src/gui/core/global.c
index 1eb8672..b4001c6 100644
--- a/src/gui/core/global.c
+++ b/src/gui/core/global.c
@@ -25,6 +25,9 @@
+/* Fenêtre principale de l'éditeur */
+static GtkWindow *_editor = NULL;
+
/* Barre de statut principale */
static GtkStatusStack *_status = NULL;
@@ -47,6 +50,44 @@ G_LOCK_DEFINE_STATIC(_ci_mutex);
/******************************************************************************
* *
+* Paramètres : editor = fenêtre principale à référencer. *
+* *
+* Description : Note l'adresse de la fenêtre principale de l'éditeur. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void set_editor_window(GtkWindow *editor)
+{
+ _editor = editor;
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : - *
+* *
+* Description : Fournit l'adresse de la fenêtre principale de l'éditeur. *
+* *
+* Retour : Fenêtre principale référencée. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+GtkWindow *get_editor_window(void)
+{
+ return _editor;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : status = barre de statut à tenir informée. *
* *
* Description : Note l'adresse de la barre de statut principale. *