We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fee5ea6 commit a2f2425Copy full SHA for a2f2425
src/TrainingSetup.vala
@@ -74,6 +74,18 @@ namespace ExerciseTimer {
74
return null;
75
}
76
77
+ public override (unowned GLib.ParamSpec)[] list_properties () {
78
+ GLib.Type type = this.get_type ();
79
+ GLib.ObjectClass ocl = (GLib.ObjectClass) type.class_ref ();
80
+ return new (unowned GLib.ParamSpec)[] {
81
+ ocl.find_property ("Title"),
82
+ ocl.find_property ("Sets"),
83
+ ocl.find_property ("PreparationSec"),
84
+ ocl.find_property ("ExerciseSec"),
85
+ ocl.find_property ("RestSec"),
86
+ };
87
+ }
88
+
89
public int TotalTimeSec {
90
get {
91
return PreparationSec + Sets * (ExerciseSec + RestSec) - RestSec;
0 commit comments