summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-23 16:22:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-23 18:53:25 (GMT)
commit56f7524c4fd0fc14a509be7689f4820b31564dbc (patch)
tree9c84e11279cd5711a4e0af907ca6160b62317528 /src/gui
parent3f05bacd4fec23824489b51d964a7ce3565bb85b (diff)
Deleted a level of data to reduce the memory fingerprint.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/core/core.c6
-rw-r--r--src/gui/dialogs/export.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/core/core.c b/src/gui/core/core.c
index dbff1b8..c2a235f 100644
--- a/src/gui/core/core.c
+++ b/src/gui/core/core.c
@@ -28,7 +28,7 @@
#include "../../core/params.h"
-#include "../../glibext/gbuffersegment.h"
+#include "../../glibext/linesegment.h"
@@ -48,7 +48,9 @@ bool load_all_gui_components(GObject *ref)
{
bool result; /* Bilan à retourner */
- result = init_segment_content_hash_table();
+ result = load_segment_rendering_parameters();
+
+ result &= init_segment_content_hash_table();
if (result)
load_main_panels(ref);
diff --git a/src/gui/dialogs/export.c b/src/gui/dialogs/export.c
index 0d7a12b..5f05031 100644
--- a/src/gui/dialogs/export.c
+++ b/src/gui/dialogs/export.c
@@ -338,7 +338,7 @@ static void do_binary_export(GCodeBuffer *buffer, const vmpa2t *start, const vmp
dprintf(ctx->fd, "\tpadding-left: 8px;\n");
dprintf(ctx->fd, "\tpadding-right: 8px;\n");
dprintf(ctx->fd, "}\n");
- g_buffer_segment_export_style(ctx, type);
+ export_line_segment_style(ctx, type);
dprintf(ctx->fd, "</STYLE>\n");
dprintf(ctx->fd, "<TABLE>\n");
break;