aboutsummaryrefslogtreecommitdiff
path: root/fiv-view.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2025-11-21 06:26:45 +0100
committerPřemysl Eric Janouch <p@janouch.name>2025-11-21 06:30:25 +0100
commit9de37473289682e1eb1c37190491ef6090d2a846 (patch)
treedf97e42e50d418fab34e9a794f2d47a1a5736f2c /fiv-view.c
parenteb65d8582f1d96b061cd887e1233c3c4025d583c (diff)
downloadfiv-9de37473289682e1eb1c37190491ef6090d2a846.tar.gz
fiv-9de37473289682e1eb1c37190491ef6090d2a846.tar.xz
fiv-9de37473289682e1eb1c37190491ef6090d2a846.zip
Image scale dialog: use two decimal placesorigin/masterorigin/HEAD
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.
Diffstat (limited to 'fiv-view.c')
-rw-r--r--fiv-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fiv-view.c b/fiv-view.c
index 2a43a87..98c8eb6 100644
--- a/fiv-view.c
+++ b/fiv-view.c
@@ -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);