Deleted done items
[gregoa/zavai.git] / src / app_calendar.vala
index 05b3138f62a7c1ff87c92e1f39f4f777282f7b7e..e35c2cd687da2d8915d00b4fa7fc358ba04fd848 100644 (file)
@@ -24,32 +24,31 @@ namespace calendar {
 
 public class Calendar : Applet
 {
-       protected widgets.Calendar calendar;
+    protected widgets.Calendar calendar;
 
-       public Calendar()
-       {
-               _label = "Calendar";
-               calendar = new widgets.Calendar();
-               pack_start(calendar, true, true, 0);
-       }
-       
-       public override void start()
-       {
-               calendar.show_today();
-       }
-       public override void stop()
-       {
-               calendar.flush();
-       }
+    public Calendar()
+    {
+        _label = "Calendar";
+        calendar = new widgets.Calendar();
+        pack_start(calendar, true, true, 0);
+    }
+
+    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);
 }
 
 }