summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-18 10:06:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-18 10:06:50 (GMT)
commit0802224190a4dc5fc772052f6c39fc7f9f134820 (patch)
tree9b219392855bfc9e8a3b4d7303cd51a5cc3736e9 /src
parenta37397e3fdbd88d4642135b9ee8696057ac60711 (diff)
Remembered panel docking status.
Diffstat (limited to 'src')
-rw-r--r--src/core/params.c2
-rw-r--r--src/gui/panels/panel.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/core/params.c b/src/core/params.c
index 9cb540e..3d0880a 100644
--- a/src/core/params.c
+++ b/src/core/params.c
@@ -227,6 +227,8 @@ bool load_main_config_parameters(void)
g_generic_config_create_group(config, "gui.panels.positions", CPT_INTEGER);
+ g_generic_config_create_group(config, "gui.panels.dock_at_startup", CPT_BOOLEAN);
+
return true;
}
diff --git a/src/gui/panels/panel.c b/src/gui/panels/panel.c
index e359962..a0965f1 100644
--- a/src/gui/panels/panel.c
+++ b/src/gui/panels/panel.c
@@ -465,7 +465,7 @@ static char *gtk_panel_item_build_configuration_key(const GPanelItem *item, cons
name = g_editor_item_get_name(G_EDITOR_ITEM(item));
- asprintf(&result, "gui.panels.%s.%s", name, attrib);
+ asprintf(&result, "gui.panels.%s.%s", attrib, name);
result = strrpl(result, " ", "_");