From 0802224190a4dc5fc772052f6c39fc7f9f134820 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 18 Mar 2019 11:06:50 +0100 Subject: Remembered panel docking status. --- src/core/params.c | 2 ++ src/gui/panels/panel.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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, " ", "_"); -- cgit v0.11.2-87-g4458