Add debug option to fire an alarm
authorEnrico Zini <enrico@enricozini.org>
Sat, 27 Mar 2010 17:38:01 +0000 (17:38 +0000)
committerEnrico Zini <enrico@enricozini.org>
Sat, 27 Mar 2010 17:38:01 +0000 (17:38 +0000)
src/app_debug.vala

index 221e2c9b7daa4d9a852af13fdcc2d7b8444d1a42..4290242ef5640bca23412144e01700bf07663d3b 100644 (file)
@@ -97,6 +97,14 @@ public void init()
     menu_debug.add_applet(useless);
     menu_debug.add_service_toggle(useless_service, "Start useless service", "Stop useless service");
 
+    var b = new BigButton();
+    b.set_label("Fire an alarm");
+    b.clicked += (b) => {
+        zavai.clock.AlarmTriggerInfo alarm = new zavai.clock.AlarmTriggerInfo("Test alarm");
+        zavai.clock.alarm_trigger_queue.enqueue_trigger(alarm);
+    };
+    menu_debug.add_widget(b);
+
     var power_menu_service = new PowerMenuService();
     zavai.registry.register(power_menu_service);
     menu_debug.add_service_toggle(power_menu_service, "Toggle power menu", "Toggle power menu");