comparison src/preferences.c @ 209:ad78ad18523a

configurable frame around image - geeqie_autofit_maxsize.patch by Laurent MONIN
author nadvornik
date Sat, 29 Mar 2008 14:59:14 +0000
parents fa0e05f985c3
children d43153435be4
comparison
equal deleted inserted replaced
208:fa0e05f985c3 209:ad78ad18523a
79 static gint two_pass_zoom_c; 79 static gint two_pass_zoom_c;
80 static gint fit_window_c; 80 static gint fit_window_c;
81 static gint limit_window_size_c; 81 static gint limit_window_size_c;
82 static gint zoom_to_fit_expands_c; 82 static gint zoom_to_fit_expands_c;
83 static gint max_window_size_c; 83 static gint max_window_size_c;
84 static gint limit_autofit_size_c;
85 static gint max_autofit_size_c;
84 static gint progressive_key_scrolling_c; 86 static gint progressive_key_scrolling_c;
85 static gint thumb_max_width_c; 87 static gint thumb_max_width_c;
86 static gint thumb_max_height_c; 88 static gint thumb_max_height_c;
87 static gint enable_thumb_caching_c; 89 static gint enable_thumb_caching_c;
88 static gint enable_thumb_dirs_c; 90 static gint enable_thumb_dirs_c;
240 two_pass_zoom = two_pass_zoom_c; 242 two_pass_zoom = two_pass_zoom_c;
241 fit_window = fit_window_c; 243 fit_window = fit_window_c;
242 limit_window_size = limit_window_size_c; 244 limit_window_size = limit_window_size_c;
243 zoom_to_fit_expands = zoom_to_fit_expands_c; 245 zoom_to_fit_expands = zoom_to_fit_expands_c;
244 max_window_size = max_window_size_c; 246 max_window_size = max_window_size_c;
247 limit_autofit_size = limit_autofit_size_c;
248 max_autofit_size = max_autofit_size_c;
245 progressive_key_scrolling = progressive_key_scrolling_c; 249 progressive_key_scrolling = progressive_key_scrolling_c;
246 thumb_max_width = thumb_max_width_c; 250 thumb_max_width = thumb_max_width_c;
247 thumb_max_height = thumb_max_height_c; 251 thumb_max_height = thumb_max_height_c;
248 enable_thumb_caching = enable_thumb_caching_c; 252 enable_thumb_caching = enable_thumb_caching_c;
249 enable_thumb_dirs = enable_thumb_dirs_c; 253 enable_thumb_dirs = enable_thumb_dirs_c;
936 two_pass_zoom, &two_pass_zoom_c); 940 two_pass_zoom, &two_pass_zoom_c);
937 941
938 pref_checkbox_new_int(group, _("Allow enlargement of image for zoom to fit"), 942 pref_checkbox_new_int(group, _("Allow enlargement of image for zoom to fit"),
939 zoom_to_fit_expands, &zoom_to_fit_expands_c); 943 zoom_to_fit_expands, &zoom_to_fit_expands_c);
940 944
945 hbox = pref_box_new(group, FALSE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE);
946 ct_button = pref_checkbox_new_int(hbox, _("Limit image size when autofitting (%):"),
947 limit_autofit_size, &limit_autofit_size_c);
948 spin = pref_spin_new_int(hbox, NULL, NULL,
949 10, 150, 1,
950 max_autofit_size, &max_autofit_size_c);
951 pref_checkbox_link_sensitivity(ct_button, spin);
952
941 zoom_increment_c = zoom_increment; 953 zoom_increment_c = zoom_increment;
942 spin = pref_spin_new(group, _("Zoom increment:"), NULL, 954 spin = pref_spin_new(group, _("Zoom increment:"), NULL,
943 0.1, 4.0, 1.0, 1, (double)zoom_increment / 10.0, 955 0.1, 4.0, 1.0, 1, (double)zoom_increment / 10.0,
944 G_CALLBACK(zoom_increment_cb), NULL); 956 G_CALLBACK(zoom_increment_cb), NULL);
945 gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON(spin), GTK_UPDATE_ALWAYS); 957 gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON(spin), GTK_UPDATE_ALWAYS);