Fix #323: Rating system
[geeqie.git] / src / bar_comment.c
index 4377b60..b5eb290 100644 (file)
@@ -175,6 +175,10 @@ static void bar_pane_comment_write_config(GtkWidget *pane, GString *outstr, gint
                {
                pcd->height = options->info_comment.height;
                }
+       if (!g_strcmp0(pcd->pane.id, "rating"))
+               {
+               pcd->height = options->info_rating.height;
+               }
 
        WRITE_NL(); WRITE_STRING("<pane_comment ");
        write_char_option(outstr, indent, "id", pcd->pane.id);
@@ -311,6 +315,10 @@ GtkWidget *bar_pane_comment_new_from_config(const gchar **attribute_names, const
                {
                options->info_comment.height = height;
                }
+       if (!g_strcmp0(id, "rating"))
+               {
+               options->info_rating.height = height;
+               }
 
        bar_pane_translate_title(PANE_COMMENT, id, &title);
        ret = bar_pane_comment_new(id, title, key, expanded, height);