summaryrefslogtreecommitdiff
path: root/src/gui/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-22 21:45:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-22 21:45:55 (GMT)
commitfa30b0fb42d2e229de9f760bfa842f25738efc18 (patch)
tree27bdc4c0ddad3a81acbc380ffd79b8cb96e1b96d /src/gui/core
parent40886e00da4c593227cecf3ab574f9c5d230b089 (diff)
Made all segments share their content to save memory.
Diffstat (limited to 'src/gui/core')
-rw-r--r--src/gui/core/core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/core/core.c b/src/gui/core/core.c
index 16e5cc8..dbff1b8 100644
--- a/src/gui/core/core.c
+++ b/src/gui/core/core.c
@@ -28,6 +28,7 @@
#include "../../core/params.h"
+#include "../../glibext/gbuffersegment.h"
@@ -47,9 +48,10 @@ bool load_all_gui_components(GObject *ref)
{
bool result; /* Bilan à retourner */
- result = true;
+ result = init_segment_content_hash_table();
- load_main_panels(ref);
+ if (result)
+ load_main_panels(ref);
return result;
@@ -93,5 +95,6 @@ bool complete_loading_of_all_gui_components(GGenConfig *config)
void unload_all_gui_components(void)
{
+ exit_segment_content_hash_table();
}