Found in "gnokii-working" directory, some November-patches version
[gnokii.git] / xgnokii / xgnokii_calendar.c
index 6c64386..c0741e2 100644 (file)
@@ -3,9 +3,14 @@
   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>
@@ -112,7 +117,7 @@ static inline void CloseCalendar (GtkWidget *w, gpointer data)
 
 inline void GUI_ShowCalendar ()
 {
-  if (GetModelFeature(FN_CALENDAR)!=0)
+  if (phoneMonitor.supported & PM_CALENDAR)
     gtk_widget_show (GUI_CalendarWindow);
 }
 
@@ -1289,10 +1294,10 @@ static GtkItemFactoryEntry menu_items[] = {
   { NULL,              NULL,           NULL, 0, "<Separator>"},
   { NULL,              "<control>W",   CloseCalendar, 0, NULL},
   { NULL,              NULL,           NULL, 0, "<Branch>"},
-  { 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,              "<control>N",   NULL, 0, NULL},
+  { NULL,              "<control>C",   NULL, 0, NULL},
+  { NULL,              "<control>M",   NULL, 0, NULL},
+  { NULL,              "<control>B",   NULL, 0, NULL},
   { NULL,              NULL,           NULL, 0, NULL},
   { NULL,              "<control>D",   DeleteNote, 0, NULL},
   { NULL,              NULL,           NULL, 0, "<Separator>"},