Mercurial > geeqie.yaz
comparison src/preferences.c @ 223:73efc1ba150f
Setting no limit size to trash directory is now possible using zero as value.
A tooltip was added to the spinner to inform the user of this possibility.
When 0 is set, no remaining/free space check occurs.
Default size of the trash was set to a 128M and maximum size is now 2048MB, which
is more conform to today's standards.
The delete dialog now displays more information:
- if external command will be used
- if safe delete is on, max size and path to the trash
- if safe delete is off
author | zas_ |
---|---|
date | Thu, 03 Apr 2008 08:51:32 +0000 |
parents | 77f1bcc6c161 |
children | 83f92073e74c |
comparison
equal
deleted
inserted
replaced
222:77f1bcc6c161 | 223:73efc1ba150f |
---|---|
1381 | 1381 |
1382 hbox = pref_box_new(group, FALSE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_BUTTON_GAP); | 1382 hbox = pref_box_new(group, FALSE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_BUTTON_GAP); |
1383 pref_checkbox_link_sensitivity(ct_button, hbox); | 1383 pref_checkbox_link_sensitivity(ct_button, hbox); |
1384 | 1384 |
1385 pref_spacer(hbox, PREF_PAD_INDENT - PREF_PAD_GAP); | 1385 pref_spacer(hbox, PREF_PAD_INDENT - PREF_PAD_GAP); |
1386 pref_spin_new_int(hbox, _("Maximum size:"), _("MB"), | 1386 spin = pref_spin_new_int(hbox, _("Maximum size:"), _("MB"), |
1387 1, 500, 1, safe_delete_size, &safe_delete_size_c); | 1387 0, 2048, 1, safe_delete_size, &safe_delete_size_c); |
1388 gtk_widget_set_tooltip_markup(spin, _("Set to 0 for unlimited size")); | |
1388 | 1389 |
1389 button = pref_button_new(NULL, NULL, _("View"), FALSE, | 1390 button = pref_button_new(NULL, NULL, _("View"), FALSE, |
1390 G_CALLBACK(safe_delete_view_cb), NULL); | 1391 G_CALLBACK(safe_delete_view_cb), NULL); |
1391 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 1392 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
1392 gtk_widget_show(button); | 1393 gtk_widget_show(button); |