summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-11 19:47:05 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-11 19:47:05 (GMT)
commit0a190905f31d7c395e1b26efe3abe443687429e5 (patch)
treeb359fe59b6cbfb2cf40181ec0f1fdb24f17b5682 /src/core
parentd53249c8021270a4070181d032da33e129c36e9f (diff)
Defined new config parameters for the edge colors.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/params.c12
-rw-r--r--src/core/params.h4
2 files changed, 16 insertions, 0 deletions
diff --git a/src/core/params.c b/src/core/params.c
index 8d9a035..9cb540e 100644
--- a/src/core/params.c
+++ b/src/core/params.c
@@ -204,6 +204,18 @@ bool load_main_config_parameters(void)
param = g_generic_config_create_param(config, MPK_TOOLTIP_MAX_STRINGS, CPT_INTEGER, 5);
if (param == NULL) return false;
+ param = g_generic_config_create_param(config, MPK_LINK_DEFAULT, CPT_COLOR, ((GdkRGBA []) {{ 0, 0, 0, 1.0 }}));
+ if (param == NULL) return false;
+
+ param = g_generic_config_create_param(config, MPK_LINK_BRANCH_TRUE, CPT_COLOR, ((GdkRGBA []) {{ 0, 0.6, 0, 1.0 }}));
+ if (param == NULL) return false;
+
+ param = g_generic_config_create_param(config, MPK_LINK_BRANCH_FALSE, CPT_COLOR, ((GdkRGBA []) {{ 0.8, 0, 0, 1.0 }}));
+ if (param == NULL) return false;
+
+ param = g_generic_config_create_param(config, MPK_LINK_LOOP, CPT_COLOR, ((GdkRGBA []) {{ 0, 0, 0.8, 1.0 }}));
+ if (param == NULL) return false;
+
param = g_generic_config_create_param(config, MPK_KEYBINDINGS_EDIT, CPT_STRING, "<Shift>F2");
if (param == NULL) return false;
diff --git a/src/core/params.h b/src/core/params.h
index 21fffd7..85f4084 100644
--- a/src/core/params.h
+++ b/src/core/params.h
@@ -62,6 +62,10 @@
#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"
+#define MPK_LINK_DEFAULT "gui.editor.graph.link.default"
+#define MPK_LINK_BRANCH_TRUE "gui.editor.graph.link.branch_true"
+#define MPK_LINK_BRANCH_FALSE "gui.editor.graph.link.branch_false"
+#define MPK_LINK_LOOP "gui.editor.graph.link.loop"
#define MPK_KEYBINDINGS_EDIT "gui.key_bindings.global.edit"
#define MPK_TMPDIR "misc.tmpdir"
#define MPK_AUTO_SAVE "project.autosave"