From 195e4a487238b8d3fdb69652e709c91c005d2e47 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Fri, 2 Apr 2010 17:03:57 +0700 Subject: [PATCH] KnobWithDisplay: Make it compile with vala 0.8.0 --- prolooks/KnobWithDisplay.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prolooks/KnobWithDisplay.vala b/prolooks/KnobWithDisplay.vala index 97b2292..a5c13ca 100644 --- a/prolooks/KnobWithDisplay.vala +++ b/prolooks/KnobWithDisplay.vala @@ -29,7 +29,7 @@ public class KnobWithDisplay : EventBox { [Description(nick="knob mode", blurb="determines, how the knob will work / look like")] public KnobMode knob_mode { get { return knob.knob_mode; } set { knob.knob_mode = value; } } [Description(nick="decimal places", blurb="The value will be rounded to the given number of decimal places")] - public uint decimal_places { get { return knob.decimal_places; } set { knob.decimal_places = value; } default = 2; } + public uint decimal_places { get { return knob.decimal_places; } set { knob.decimal_places = value; } } construct { vbox = new VBox (false, 0); @@ -38,6 +38,7 @@ public class KnobWithDisplay : EventBox { display = new ValueDisplay (); vbox.add (display); knob.user_data = display; + decimal_places = 2; var adj = knob.get_adjustment (); knob.value_changed += (knob) => { ValueDisplay disp = knob.user_data as ValueDisplay; -- 2.11.4.GIT