First attempt at satellite monitor
[gregoa/zavai.git] / src / zavai.vala
index f4f09b2c9906476d3146b655d606213988dedd9e..38b9c240c7c6dd3cd82b1705222a3c35a090d1b6 100644 (file)
@@ -22,6 +22,11 @@ using GLib;
 
 //string VERSION = "0.1";
 
+void on_alarm()
+{
+       stderr.printf("RETURNED\n");
+}
+
 static int main (string[] args) {
        Gtk.init (ref args);
 
@@ -56,6 +61,8 @@ static int main (string[] args) {
 
        // TODO: register the rest of menus here
        zavai.ui.gps.init();
+       zavai.ui.kbd.init();
+       zavai.ui.wm.init();
        zavai.ui.debug.init();
 
        zavai.app.show_applet("menu.main");
@@ -88,6 +95,22 @@ static int main (string[] args) {
        // app.connect("destroy", gtk.main_quit)
        // app.run()
 
+/*
+       dynamic DBus.Object otime = zavai.registry.sbus.get_object(
+                       "org.freesmartphone.otimed",
+                       "/org/freesmartphone/Time/Alarm",
+                       "org.freesmartphone.Time.Alarm");
+
+       otime.ClearAlarm();
+       otime.SetAlarm(time_t() + 10);
+
+       dynamic DBus.Object notification = zavai.registry.sbus.get_object(
+                       "org.freesmartphone",
+                       "org/freesmartphone/Notification",
+                       "org.freesmartphone.Notification");
+       notification.Alarm += on_alarm;
+*/
+
        zavai.app.run();
        Gtk.main();
        //registry.loop.run();