summaryrefslogtreecommitdiff
path: root/src/widget
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget')
-rw-r--r--src/widget/slider.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget/slider.vala b/src/widget/slider.vala
index 4c6cb88..e41e2e8 100644
--- a/src/widget/slider.vala
+++ b/src/widget/slider.vala
@@ -6,14 +6,14 @@ public class Slider : Gtk.Scale {
set { orientation = value ? Gtk.Orientation.VERTICAL : Gtk.Orientation.HORIZONTAL; }
}
- static construct {
- set_css_name("slider");
- }
-
construct {
if (adjustment == null)
adjustment = new Gtk.Adjustment(0,0,0,0,0,0);
+ if (max == 0 && min == 0) {
+ max = 1;
+ }
+
notify["orientation"].connect(() => {
notify_property("vertical");
});