Fix #264, 274, 285, 436: Add 'Losslessly rotate image' keyboard shortcuts
[geeqie.git] / src / preferences.c
index 38fcc07..aebc768 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)
@@ -1474,17 +1479,21 @@ static void config_tab_general(GtkWidget *notebook)
        pref_checkbox_new_int(group, _("Refresh on file change"),
                              options->update_on_time_change, &c_options->update_on_time_change);
 
-       group = pref_group_new(vbox, FALSE, _("Info sidebar"), GTK_ORIENTATION_VERTICAL);
+       group = pref_group_new(vbox, FALSE, _("Info sidebar heights"), GTK_ORIENTATION_VERTICAL);
+       pref_label_new(group, _("NOTE! Geeqie must be restarted for changes to take effect"));
        hbox = pref_box_new(group, FALSE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE);
-       pref_spin_new_int(hbox, _("Keywords height:"), NULL,
+       pref_spin_new_int(hbox, _("Keywords:"), NULL,
                                 1, 9999, 1,
                                 options->info_keywords.height, &c_options->info_keywords.height);
-       pref_spin_new_int(hbox, _("Title height:"), NULL,
+       pref_spin_new_int(hbox, _("Title:"), NULL,
                                 1, 9999, 1,
                                 options->info_title.height, &c_options->info_title.height);
-       pref_spin_new_int(hbox, _("Comment height:"), NULL,
+       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 */
@@ -1888,7 +1897,7 @@ static void config_tab_metadata(GtkWidget *notebook)
        label = pref_label_new(group, _("Metadata are written in the following order. The process ends after first success."));
        gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
 
-       ct_button = pref_checkbox_new_int(group, _("1) Save metadata in image files, resp. sidecar files, according to the XMP standard"),
+       ct_button = pref_checkbox_new_int(group, _("1) Save metadata in image files, or sidecar files, according to the XMP standard"),
                              options->metadata.save_in_image_file, &c_options->metadata.save_in_image_file);
 #ifndef HAVE_EXIV2
        gtk_widget_set_sensitive(ct_button, FALSE);