Image scale dialog: use two decimal places
All checks were successful
Alpine 3.22 Success
Arch Linux Success
Arch Linux AUR Success
Debian Bookworm Success
Fedora 39 Success
OpenBSD 7.8 Success
openSUSE 15.5 Success

GIMP does as well, and it provides better information.

It's not as if anyone is really going to use the spin button features
which behave weird with this, and it indicates that decimal numbers may
be written at all.
This commit is contained in:
2025-11-21 06:26:45 +01:00
parent eb65d8582f
commit 9de3747328

View File

@@ -1506,7 +1506,7 @@ zoom_ask(FivView *self)
// For example, we would like to be flexible with decimal spaces.
GtkAdjustment *adjustment = gtk_adjustment_new(
self->scale * 100, 0., 100000., 1., 10., 0.);
GtkWidget *spin = gtk_spin_button_new(adjustment, 1., 0);
GtkWidget *spin = gtk_spin_button_new(adjustment, 1., 2);
gtk_spin_button_set_update_policy(
GTK_SPIN_BUTTON(spin), GTK_UPDATE_IF_VALID);
gtk_entry_set_activates_default(GTK_ENTRY(spin), TRUE);