Compare commits

...

4 Commits

Author SHA1 Message Date
fd60959d41 README.adoc: more precise instructions
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
2025-12-02 01:50:24 +01:00
6b0bd4ac5c Update .gitignore for newer Qt Creator 2025-11-30 18:20:03 +01:00
f543a46118 README.adoc: make quick'n'dirty instructions work
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
Without the compiled schemas, fiv doesn't launch at all.
2025-11-29 23:45:31 +01:00
9de3747328 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.
2025-11-21 06:30:25 +01:00
3 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/.qtcreator
/meson.build.user
/subprojects/*
!/subprojects/*.wrap

View File

@@ -69,6 +69,11 @@ you can get a quick and dirty installation package for testing purposes using:
$ meson compile deb
# dpkg -i fiv-*.deb
And in case you keep the default installation prefix rather than _/usr_,
it is necessary to:
# glib-compile-schemas /usr/local/share/glib-2.0/schemas
Windows
~~~~~~~
'fiv' can be cross-compiled for Windows, provided that you install a bunch of

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);