Added config options for call and sms ringtones
[gregoa/zavai.git] / src / app_calendar.vala
index 26debb34de3adb94efb41bb95258b84e83bc2682..e35c2cd687da2d8915d00b4fa7fc358ba04fd848 100644 (file)
@@ -24,31 +24,31 @@ namespace calendar {
 
 public class Calendar : Applet
 {
-       protected Gtk.Calendar calendar;
+    protected widgets.Calendar calendar;
 
-       public Calendar()
-       {
-               _label = "Calendar";
-               calendar = new Gtk.Calendar();
-               pack_start(calendar, true, true, 0);
-       }
+    public Calendar()
+    {
+        _label = "Calendar";
+        calendar = new widgets.Calendar();
+        pack_start(calendar, true, true, 0);
+    }
 
-       public override void start()
-       {
-               // Go to current date
-       }
-       public override void stop()
-       {
-       }
+    public override void start()
+    {
+        calendar.show_today();
+    }
+    public override void stop()
+    {
+        calendar.flush();
+    }
 }
 
-Calendar calendar;
+public Calendar calendar;
 
 public void init()
 {
-       calendar = new Calendar();
-        zavai.registry.register_applet("ui.calendar", calendar);
-        zavai.registry.getmenu("menu.misc").add_applet("ui.calendar");
+    calendar = new Calendar();
+    zavai.menu_misc.add_applet(calendar);
 }
 
 }