X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Fbar_comment.c;h=4377b6030cd1368ec5fe46aa5f24571b67880096;hp=a8883c0a0882edb5860f6e4315b9a3619324276c;hb=2ed5e0e3bd63a51decd876ea9f2143a0dc977846;hpb=06b80ed3f417c8e1c5a53b0169179794e79f5567 diff --git a/src/bar_comment.c b/src/bar_comment.c index a8883c0a..4377b603 100644 --- a/src/bar_comment.c +++ b/src/bar_comment.c @@ -167,6 +167,15 @@ static void bar_pane_comment_write_config(GtkWidget *pane, GString *outstr, gint pcd = g_object_get_data(G_OBJECT(pane), "pane_data"); if (!pcd) return; + if (!g_strcmp0(pcd->pane.id, "title")) + { + pcd->height = options->info_title.height; + } + if (!g_strcmp0(pcd->pane.id, "comment")) + { + pcd->height = options->info_comment.height; + } + WRITE_NL(); WRITE_STRING("pane.id); write_char_option(outstr, indent, "title", gtk_label_get_text(GTK_LABEL(pcd->pane.title))); @@ -294,6 +303,15 @@ GtkWidget *bar_pane_comment_new_from_config(const gchar **attribute_names, const log_printf("unknown attribute %s = %s\n", option, value); } + if (!g_strcmp0(id, "title")) + { + options->info_title.height = height; + } + if (!g_strcmp0(id, "comment")) + { + options->info_comment.height = height; + } + bar_pane_translate_title(PANE_COMMENT, id, &title); ret = bar_pane_comment_new(id, title, key, expanded, height); g_free(title);