Eliminate FIXME: Log window line limit
[geeqie.git] / src / preferences.c
index 5b6eab5..1e7ad4c 100644 (file)
@@ -370,6 +370,7 @@ static void config_window_apply(void)
        options->info_keywords.height = c_options->info_keywords.height;
        options->info_title.height = c_options->info_title.height;
        options->info_comment.height = c_options->info_comment.height;
+       options->info_rating.height = c_options->info_rating.height;
 
 #ifdef DEBUG
        set_debug_level(debug_c);
@@ -450,7 +451,11 @@ static void config_window_ok_cb(GtkWidget *widget, gpointer data)
 
 static void config_window_apply_cb(GtkWidget *widget, gpointer data)
 {
+       LayoutWindow *lw;
+       lw = layout_window_list->data;
+
        config_window_apply();
+       layout_util_sync(lw);
 }
 
 static void config_window_save_cb(GtkWidget *widget, gpointer data)
@@ -1486,6 +1491,9 @@ static void config_tab_general(GtkWidget *notebook)
        pref_spin_new_int(hbox, _("Comment:"), NULL,
                                 1, 9999, 1,
                                 options->info_comment.height, &c_options->info_comment.height);
+       pref_spin_new_int(hbox, _("Rating:"), NULL,
+                                1, 9999, 1,
+                                options->info_rating.height, &c_options->info_rating.height);
 }
 
 /* image tab */
@@ -2188,6 +2196,9 @@ static void config_tab_behavior(GtkWidget *notebook)
 
        pref_spin_new_int(group, _("Debug level:"), NULL,
                          DEBUG_LEVEL_MIN, DEBUG_LEVEL_MAX, 1, get_debug_level(), &debug_c);
+
+       pref_spin_new_int(group, _("Log Window max. lines:"), NULL,
+                         1, 99999, 1, options->log_window_lines, &options->log_window_lines);
 #endif
 }