Mercurial > hg > forks > geeqie
diff src/preferences.c @ 2341:c9948056a6db
Refined zoom step
I would give the credentials to the orignal author but he is only known
as "unqwist".
Closes #359.
author | Klaus Ethgen <Klaus@Ethgen.de> |
---|---|
date | Thu, 19 May 2016 17:26:05 +0100 |
parents | 7ff7000c458c |
children | ab475bde511b |
line wrap: on
line diff
--- a/src/preferences.c Thu May 19 16:27:35 2016 +0100 +++ b/src/preferences.c Thu May 19 17:26:05 2016 +0100 @@ -138,7 +138,7 @@ static void zoom_increment_cb(GtkWidget *spin, gpointer data) { - c_options->image.zoom_increment = (gint)(gtk_spin_button_get_value(GTK_SPIN_BUTTON(spin)) * 10.0 + 0.01); + c_options->image.zoom_increment = (gint)(gtk_spin_button_get_value(GTK_SPIN_BUTTON(spin)) * 100.0 + 0.01); } static void slideshow_delay_cb(GtkWidget *spin, gpointer data) @@ -1400,7 +1400,7 @@ c_options->image.zoom_increment = options->image.zoom_increment; spin = pref_spin_new(group, _("Zoom increment:"), NULL, - 0.1, 4.0, 0.1, 1, (gdouble)options->image.zoom_increment / 10.0, + 0.01, 4.0, 0.01, 2, (gdouble)options->image.zoom_increment / 100.0, G_CALLBACK(zoom_increment_cb), NULL); gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON(spin), GTK_UPDATE_ALWAYS);