http://marcin-wiacek.fkn.pl/english/zips/mygnokii.tar.gz
[gnokii.git] / xgnokii / xgnokii_calendar.c
index c0741e2..6c64386 100644 (file)
@@ -3,14 +3,9 @@
   X G N O K I I
 
   A Linux/Unix GUI for Nokia mobile phones.
-  Copyright (C) 1999 Pavel Janík ml., Hugh Blemings
-  & Ján Derfiòák <ja@mail.upjs.sk>.
 
   Released under the terms of the GNU GPL, see file COPYING for more details.
 
-  Last modification: Tue Nov 28 1999
-  Modified by Jan Derfinak
-
 */
 
 #include <time.h>
@@ -117,7 +112,7 @@ static inline void CloseCalendar (GtkWidget *w, gpointer data)
 
 inline void GUI_ShowCalendar ()
 {
-  if (phoneMonitor.supported & PM_CALENDAR)
+  if (GetModelFeature(FN_CALENDAR)!=0)
     gtk_widget_show (GUI_CalendarWindow);
 }
 
@@ -1294,10 +1289,10 @@ static GtkItemFactoryEntry menu_items[] = {
   { NULL,              NULL,           NULL, 0, "<Separator>"},
   { NULL,              "<control>W",   CloseCalendar, 0, NULL},
   { NULL,              NULL,           NULL, 0, "<Branch>"},
-  { NULL,              "<control>N",   NULL, 0, NULL},
-  { NULL,              "<control>C",   NULL, 0, NULL},
-  { NULL,              "<control>M",   NULL, 0, NULL},
-  { NULL,              "<control>B",   NULL, 0, NULL},
+  { NULL,              "<control>N",   AddReminder, 0, NULL},
+  { NULL,              "<control>C",   AddCall, 0, NULL},
+  { NULL,              "<control>M",   AddMeeting, 0, NULL},
+  { NULL,              "<control>B",   AddBirthday, 0, NULL},
   { NULL,              NULL,           NULL, 0, NULL},
   { NULL,              "<control>D",   DeleteNote, 0, NULL},
   { NULL,              NULL,           NULL, 0, "<Separator>"},