Notification works via tweaked fso interface
authorEnrico Zini <enrico@enricozini.org>
Fri, 27 Nov 2009 18:16:01 +0000 (19:16 +0100)
committerEnrico Zini <enrico@enricozini.org>
Fri, 27 Nov 2009 18:16:01 +0000 (19:16 +0100)
src/clock.vala
src/zavai.vala

index 5b0638bb307444e47c105afec0c84a0bb859457e..edc1ca17c642b663ce0bdeb6de4b9bba94418f62 100644 (file)
@@ -147,6 +147,9 @@ public class AlarmNotification : Object {
        public void Alarm () {
                clock.check_alarms();
        }
+       public void AtAlarm (string label) {
+               clock.notify(label);
+       }
 }
 
 [DBus (name = "org.enricozini.zavai.Alarm")]
index 77cfa5ccfdd6abaccca63893e463721c298b9103..33e0bd72c09417fe7cddb69925136a84686763c7 100644 (file)
@@ -73,7 +73,7 @@ static int main (string[] args) {
                        "org.enricozini.zavai",
                        "/",
                        "org.freesmartphone.Notification");
-               zav.Alarm();
+               zav.AtAlarm("ciao");
                //      "org.enricozini.zavai.Alarm");
                //zav.Notify();