summaryrefslogtreecommitdiff
path: root/src/main.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/main.c
parent8ca477e012b11a19363542d171b8e973d637641c (diff)
Deleted the reference to the main window in all panels.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index 46eb3e8..43fa5d3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -60,11 +60,6 @@ static int open_binaries(char **, int);
-/* Espace de référencement global. // FIXME à déplacer */
-static GObject *_ref = NULL;
-
-
-
/******************************************************************************
* *
* Paramètres : name = nom du programme en question. *
@@ -251,8 +246,6 @@ int main(int argc, char **argv)
editor = create_editor();
if (editor == NULL) goto failed_to_load_editor;
- _ref = G_OBJECT(editor);
-
if (!batch_mode)
gtk_widget_show_now(editor);
@@ -288,7 +281,7 @@ int main(int argc, char **argv)
g_idle_add((GSourceFunc)load_last_project, config);
else
- set_current_project(g_study_project_new(_ref));
+ set_current_project(g_study_project_new());
/* Exécution du programme */
@@ -341,8 +334,8 @@ static gboolean load_last_project(GGenConfig *cfg)
if (!g_generic_config_get_value(cfg, MPK_LAST_PROJECT, &filename))
filename = NULL;
- if (filename == NULL) project = g_study_project_new(_ref);
- else project = g_study_project_open(_ref, filename);
+ if (filename == NULL) project = g_study_project_new();
+ else project = g_study_project_open(filename);
set_current_project(project);