From c1ca3b52ee3103178e4fc3ff3bb4e26bb9865818 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Tue, 13 Dec 2016 15:04:12 +0100
Subject: Moved the registration of sharing hash tables.

---
 ChangeLog           | 6 ++++++
 src/core/core.c     | 3 +++
 src/gui/core/core.c | 3 ---
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 41da548..2ee17fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 16-12-13  Cyrille Bagard <nocbos@gmail.com>
 
+	* src/core/core.c:
+	* src/gui/core/core.c:
+	Move the registration of sharing hash tables.
+
+16-12-13  Cyrille Bagard <nocbos@gmail.com>
+
 	* plugins/mobicore/mclf-int.c:
 	* src/main.c:
 	Fix some compilation warnings.
diff --git a/src/core/core.c b/src/core/core.c
index 67fe95f..362ab03 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -39,6 +39,7 @@
 #include "../analysis/db/keymgn.h"
 #include "../common/io.h"
 #include "../common/xdg.h"
+#include "../glibext/linesegment.h"
 #include "../gtkext/support.h"
 
 
@@ -82,6 +83,8 @@ bool load_all_basic_components(void)
 
         result &= g_generic_config_read(get_main_configuration());
 
+        result &= init_segment_content_hash_table();
+
         result &= load_hard_coded_processors_definitions();
 
         result &= load_hard_coded_formats_definitions();
diff --git a/src/gui/core/core.c b/src/gui/core/core.c
index 7d75167..22ce2b7 100644
--- a/src/gui/core/core.c
+++ b/src/gui/core/core.c
@@ -29,7 +29,6 @@
 
 #include "theme.h"
 #include "../../core/params.h"
-#include "../../glibext/linesegment.h"
 
 
 
@@ -55,8 +54,6 @@ bool load_all_gui_components(GObject *ref)
 
     result = load_segment_rendering_parameters();
 
-    result &= init_segment_content_hash_table();
-
     return result;
 
 }
-- 
cgit v0.11.2-87-g4458