summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-07-26 18:52:15 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-07-26 18:52:15 (GMT)
commita6c46fc296db67321db3d4bb586346998de90422 (patch)
tree042cd0fd89fd1f1c8943b3aefd2b50585f461f58 /src/core
parent19516ffcca14abb082c5109125b7249bdc7fc199 (diff)
Reduced the quantity of arguments used to deal with lines.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/params.c3
-rw-r--r--src/core/params.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/params.c b/src/core/params.c
index 109593d..7e6e1ed 100644
--- a/src/core/params.c
+++ b/src/core/params.c
@@ -77,6 +77,9 @@ bool load_main_config_parameters(void)
param = g_generic_config_create_param(config, MPK_LABEL_OFFSET, CPT_INTEGER, 10);
if (param == NULL) return false;
+ param = g_generic_config_create_param(config, MPK_HEX_PADDING, CPT_INTEGER, 10);
+ if (param == NULL) return false;
+
param = g_generic_config_create_param(config, MPK_SELECTION_LINE, CPT_BOOLEAN, true);
if (param == NULL) return false;
diff --git a/src/core/params.h b/src/core/params.h
index 6c4c062..dc6b180 100644
--- a/src/core/params.h
+++ b/src/core/params.h
@@ -44,6 +44,7 @@
#define MPK_WELCOME_STARTUP "gui.editor.panels.welcome.show_at_startup"
#define MPK_WELCOME_CHECK "gui.editor.panels.welcome.check_version"
#define MPK_LABEL_OFFSET "gui.editor.views.label_offset"
+#define MPK_HEX_PADDING "gui.editor.views.hex_padding"
#define MPK_SELECTION_LINE "gui.editor.views.selection_line"
#define MPK_TOOLTIP_MAX_CALLS "gui.editor.views.tooltip_max_calls"
#define MPK_TOOLTIP_MAX_STRINGS "gui.editor.views.tooltip_max_strings"