diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-17 21:55:47 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-17 21:55:47 +0100 |
commit | c89a5ec0603f3a628ea6670322a59b820cf7d3aa (patch) | |
tree | e1c3e1faa2812900f4e6902137be64123e561adc /plugins/gtkui | |
parent | 3a00a98d33a52ce0330fd6a65867b493a96fa529 (diff) |
gtkui: correctly save layout upgrade flag
Diffstat (limited to 'plugins/gtkui')
-rw-r--r-- | plugins/gtkui/gtkui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 912b210b..e2495082 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -799,7 +799,7 @@ gtkui_message (uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2) { return 0; } -static const char gtkui_def_layout[] = "vbox expand=\"0 1\" fill=\"1 1\" homogeneous=0 {hbox expand=\"0 1 0\" fill=\"1 1 1\" homogeneous=0 {playtb {} seekbar {} volumebar {} } tabbed_playlist hideheaders=0 {} }"; +static const char gtkui_def_layout[] = "vbox expand=\"0 1\" fill=\"1 1\" homogeneous=0 {hbox expand=\"0 1 0\" fill=\"1 1 1\" homogeneous=0 {playtb {} seekbar {} volumebar {} } tabbed_playlist hideheaders=0 {} } "; static void init_widget_layout (void) { @@ -818,8 +818,9 @@ init_widget_layout (void) { snprintf (layout_upgrade, sizeof (layout_upgrade), "vbox expand=\"0 1\" fill=\"1 1\" homogeneous=0 {hbox expand=\"0 1 0\" fill=\"1 1 1\" homogeneous=0 {playtb {} seekbar {} volumebar {} } %s }", layout); strcpy (layout, layout_upgrade); deadbeef->conf_set_str ("gtkui.layout", layout); - deadbeef->conf_set_int ("gtkui.layout_062_upgraded", 1); } + deadbeef->conf_set_int ("gtkui.layout_062_upgraded", 1); + deadbeef->conf_save (); ddb_gtkui_widget_t *w = NULL; w_create_from_string (layout, &w); |