summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-07-14 20:59:33 +0200
committerAylur <[email protected]>2024-07-14 20:59:33 +0200
commit4e54401658fd2e1915eadd6f444b1c861da5237e (patch)
tree92070f61b70d51ff54e4aaeb4880fcccea79e45d /src
parente046d9428473fba74e4508776063904ec786aab4 (diff)
add slider default step value
Diffstat (limited to 'src')
-rw-r--r--src/widget/slider.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widget/slider.vala b/src/widget/slider.vala
index 4fa1216..421b27a 100644
--- a/src/widget/slider.vala
+++ b/src/widget/slider.vala
@@ -17,6 +17,10 @@ public class Slider : Gtk.Scale {
max = 1;
}
+ if (step == 0) {
+ step = 0.05;
+ }
+
notify["orientation"].connect(() => {
notify_property("vertical");
});