Alarm notification now pushes ringtones
[gregoa/zavai.git] / src / app_alarm.vala
index 8b7cfd2e763aa3e668e05966650968661d2cff0b..e09879f035921f6b1063f2d58c63ac740ec10231 100644 (file)
@@ -60,25 +60,25 @@ protected class AlarmNotifierDialog : ui.notify.Notifier
         message_button.show();
     }
 
-    protected virtual bool push_aux_state()
+    protected override bool push_aux_state()
     {
-        var state = new zavai.led.LedState(name);
+        var state = new zavai.led.LedState(notifier_name);
         state.set_blink(255);
         zavai.led.aux.push_state(state);
         return true;
     }
 
-    protected virtual bool push_vibrator_state()
+    protected override bool push_vibrator_state()
     {
-        var state = new zavai.led.LedState(name);
+        var state = new zavai.led.LedState(notifier_name);
         state.set_blink(255);
         zavai.led.aux.push_state(state);
         return true;
     }
 
-    protected virtual bool push_ringtone_state()
+    protected override bool push_ringtone_state()
     {
-        var state = new zavai.audio.PlayerState(name, config.ringtone_alarm, true);
+        var state = new zavai.audio.PlayerState(notifier_name, config.ringtone_alarm, true);
         zavai.audio.soundplayer.push_state(state);
         return true;
     }