}
-GtkWidget *bar_update_from_config(GtkWidget *bar, const gchar **attribute_names, const gchar **attribute_values, LayoutWindow *lw)
+GtkWidget *bar_update_from_config(GtkWidget *bar, const gchar **attribute_names, const gchar **attribute_values, LayoutWindow *lw, gboolean startup)
{
gboolean enabled = TRUE;
gint width = SIDEBAR_DEFAULT_WIDTH;
log_printf("unknown attribute %s = %s\n", option, value);
}
- gtk_paned_set_position(GTK_PANED(lw->utility_paned), width);
+ if (startup)
+ {
+ gtk_paned_set_position(GTK_PANED(lw->utility_paned), width);
+ }
if (enabled)
{
GtkWidget *bar_new_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values)
{
GtkWidget *bar = bar_new(lw);
- return bar_update_from_config(bar, attribute_names, attribute_values, lw);
+ return bar_update_from_config(bar, attribute_names, attribute_values, lw, TRUE);
}
GtkWidget *bar_pane_expander_title(const gchar *title)
GtkWidget *bar_new(LayoutWindow *lw);
GtkWidget *bar_new_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values);
-GtkWidget *bar_update_from_config(GtkWidget *bar, const gchar **attribute_names, const gchar **attribute_values, LayoutWindow *lw);
+GtkWidget *bar_update_from_config(GtkWidget *bar, const gchar **attribute_names, const gchar **attribute_values, LayoutWindow *lw, gboolean startup);
void bar_close(GtkWidget *bar);
}
else
{
- bar_update_from_config(lw->bar, attribute_names, attribute_values, lw);
+ bar_update_from_config(lw->bar, attribute_names, attribute_values, lw, FALSE);
}
options_parse_func_push(parser_data, options_parse_bar, NULL, lw->bar);