Merge branch 'master' of ssh://ciapino/root/zavai
authorEnrico Zini <enrico@enricozini.org>
Tue, 28 Jul 2009 17:55:02 +0000 (19:55 +0200)
committerEnrico Zini <enrico@enricozini.org>
Tue, 28 Jul 2009 17:55:02 +0000 (19:55 +0200)
run
src/zavai.vala

diff --git a/run b/run
index 5fc2efbd0727e308c034f67c1ab3fe922709bdf3..5882ace8fbf649c2a348bae94b692a2829c88b8a 100755 (executable)
--- a/run
+++ b/run
@@ -6,4 +6,7 @@ export PYTHONPATH=$ROOT
 export ZAVAI_CONFDIR=$ROOT/conf
 export ZAVAI_PLUGINS=$ROOT/plugins
 
-$ROOT/src/zavai "$@"
+#$ROOT/src/zavai "$@"
+
+cd $ROOT
+src/zavai "$@"
index 3a92d78c1958e6ca92d12b6eb05eed0c7bae40bd..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);
 
@@ -90,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();