From 2d7d505548c10c0e59cd46cb462a8df55f138d67 Mon Sep 17 00:00:00 2001 From: Hg Date: Wed, 21 Sep 2022 21:43:19 +0200 Subject: 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 --- src/scale.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/scale.c') 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), -- cgit