summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHg <dev@indigo.re>2022-09-21 21:43:19 +0200
committerHg <dev@indigo.re>2022-09-21 21:48:37 +0200
commit2d7d505548c10c0e59cd46cb462a8df55f138d67 (patch)
tree900e03a0cfd4c2fec581e360a2855e67430afd71
parentUpdate Turkish translation (diff)
downloadzenity-2d7d505548c10c0e59cd46cb462a8df55f138d67.tar.gz
zenity-2d7d505548c10c0e59cd46cb462a8df55f138d67.tar.bz2
zenity-2d7d505548c10c0e59cd46cb462a8df55f138d67.zip
scale: set a page increment so mouse wheel can be used on widget
the page increment is set to the same as step increment, for simplicity. Closes #30
-rw-r--r--src/scale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scale.c b/src/scale.c
index 7e6686b3..42284f57 100644
--- a/src/scale.c
+++ b/src/scale.c
@@ -114,7 +114,8 @@ zenity_scale (ZenityData *data, ZenityScaleData *scale_data) {
gtk_range_set_range (
GTK_RANGE (scale), scale_data->min_value, scale_data->max_value);
gtk_range_set_value (GTK_RANGE (scale), scale_data->value);
- gtk_range_set_increments (GTK_RANGE (scale), scale_data->step, 0);
+ gtk_range_set_increments (
+ GTK_RANGE (scale), scale_data->step, scale_data->step);
if (scale_data->print_partial)
g_signal_connect (G_OBJECT (scale),
bgstack15