[zenity: 1/2] scale: set a page increment so mouse wheel can be used on widget
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [zenity: 1/2] scale: set a page increment so mouse wheel can be used on widget
- Date: Wed, 21 Sep 2022 23:24:05 +0000 (UTC)
commit 2d7d505548c10c0e59cd46cb462a8df55f138d67
Author: Hg <dev indigo re>
Date: Wed Sep 21 21:43:19 2022 +0200
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(-)
---
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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]