aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/calendar-commands.c2
-rw-r--r--calendar/gui/e-day-view.c6
-rw-r--r--calendar/gui/e-week-view.c7
-rw-r--r--calendar/gui/event-editor.c4
-rw-r--r--calendar/gui/gncal-todo.c4
-rw-r--r--calendar/gui/gnome-cal.c4
-rw-r--r--calendar/gui/prop.c2
8 files changed, 34 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 5f6b7ab8f6..0a058b1f57 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2000-08-24 Christopher James Lahey <clahey@helixcode.com>
+
+ * gui/calendar-commands.c, gui/e-day-view.c, gui/e-week-view.c,
+ gui/event-editor.c, gui/gncal-todo.c, gui/gnome-cal.c, gui/prop.c:
+ Fixed some warnings.
+
2000-08-24 JP Rosevear <jpr@helixcode.com>
* gui/e-week-view.c (e_week_view_on_new_appointment): Do not alloc
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index 2dd63f832c..564512dfe4 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -407,7 +407,9 @@ open_ok (GtkWidget *widget, GtkFileSelection *fs)
ret = gnome_dialog_run (GNOME_DIALOG (error_dialog));
} else {
/* FIXME: find out who owns this calendar and use that name */
+#ifndef NO_WARNINGS
#warning "FIXME: find out who owns this calendar and use that name"
+#endif
/*
new_calendar ("Somebody", gtk_file_selection_get_filename (fs), NULL, NULL, FALSE);
*/
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index cc50032734..dbc628c6d3 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -365,10 +365,12 @@ static void e_day_view_on_main_canvas_drag_data_received (GtkWidget *widget
guint info,
guint time,
EDayView *day_view);
+#ifndef NO_WARNINGS
static gboolean e_day_view_update_event_cb (EDayView *day_view,
gint day,
gint event_num,
gpointer data);
+#endif
static gboolean e_day_view_remove_event_cb (EDayView *day_view,
gint day,
gint event_num,
@@ -1162,7 +1164,9 @@ e_day_view_update_event (EDayView *day_view,
else
event = &g_array_index (day_view->events[day],
EDayViewEvent, event_num);
+#ifndef NO_WARNINGS
#warning "FIX ME"
+#endif
/* Do this the long way every time for now */
#if 0
if (ical_object_compare_dates (event->ico, ico)) {
@@ -1196,6 +1200,7 @@ e_day_view_update_event (EDayView *day_view,
}
+#ifndef NO_WARNINGS
static gboolean
e_day_view_update_event_cb (EDayView *day_view,
gint day,
@@ -1240,6 +1245,7 @@ e_day_view_update_event_cb (EDayView *day_view,
}
return TRUE;
}
+#endif
/* This calls a given function for each event instance that matches the given
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 2bb1ce4e05..f7f35bd4e9 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -164,9 +164,11 @@ static void e_week_view_on_delete_appointment (GtkWidget *widget,
static void e_week_view_on_unrecur_appointment (GtkWidget *widget,
gpointer data);
+#ifndef NO_WARNINGS
static gboolean e_week_view_update_event_cb (EWeekView *week_view,
gint event_num,
gpointer data);
+#endif
static gboolean e_week_view_remove_event_cb (EWeekView *week_view,
gint event_num,
gpointer data);
@@ -997,7 +999,6 @@ void
e_week_view_update_event (EWeekView *week_view,
const gchar *uid)
{
- EWeekViewEvent *event;
gint event_num, num_days;
CalComponent *comp;
CalClientGetStatus status;
@@ -1038,7 +1039,9 @@ e_week_view_update_event (EWeekView *week_view,
update the event fairly easily without changing the events arrays
or computing a new layout. */
if (e_week_view_find_event_from_uid (week_view, uid, &event_num)) {
+#ifndef NO_WARNINGS
#warning "FIX ME"
+#endif
/* Do this the long way every time for now */
#if 0
event = &g_array_index (week_view->events, EWeekViewEvent,
@@ -1075,6 +1078,7 @@ e_week_view_update_event (EWeekView *week_view,
}
+#ifndef NO_WARNINGS
static gboolean
e_week_view_update_event_cb (EWeekView *week_view,
gint event_num,
@@ -1121,6 +1125,7 @@ e_week_view_update_event_cb (EWeekView *week_view,
return TRUE;
}
+#endif
/* This calls a given function for each event instance that matches the given
diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c
index da44b59148..f0246b3309 100644
--- a/calendar/gui/event-editor.c
+++ b/calendar/gui/event-editor.c
@@ -780,7 +780,9 @@ fill_widgets (EventEditor *ee)
}
/* Recurrences */
+#ifndef NO_WARNINGS
#warning "FIX ME"
+#endif
/* Need to handle recurrence dates as well as recurrence rules */
/* Need to handle more than one rrule */
if (cal_component_has_rrules (priv->comp)) {
@@ -894,7 +896,9 @@ fill_widgets (EventEditor *ee)
}
/* Exceptions list */
+#ifndef NO_WARNINGS
#warning "FIX ME"
+#endif
/* Need to handle exception rules as well as dates */
cal_component_get_exdate_list (priv->comp, &list);
for (l = list; l; l = l->next) {
diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c
index a79d39363c..44df93832a 100644
--- a/calendar/gui/gncal-todo.c
+++ b/calendar/gui/gncal-todo.c
@@ -249,7 +249,9 @@ gncal_todo_edit (CalClient *client, CalComponent *comp)
gtk_text_set_editable (GTK_TEXT (comment_text), TRUE);
gtk_text_set_word_wrap( GTK_TEXT(comment_text), TRUE);
gtk_text_freeze(GTK_TEXT(comment_text));
+#ifndef NO_WARNINGS
#warning "FIX ME"
+#endif
/* Need to handle multiple comments */
cal_component_get_comment_list (comp, &l);
if (l) {
@@ -929,7 +931,9 @@ gncal_todo_update (GncalTodo *todo, CalComponent *comp, int flags)
insert_in_clist (todo, comp);
gtk_object_unref (GTK_OBJECT (comp));
}
+#ifndef NO_WARNINGS
#warning "FIX ME"
+#endif
/* else? */
g_free (uid);
}
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index bb2a3ded10..c445ac7317 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -432,6 +432,7 @@ gnome_calendar_set_view (GnomeCalendar *gcal, char *page_name)
gnome_calendar_update_gtk_calendar (gcal);
}
+#ifndef NO_WARNINGS
/* Sends a mail notification of an alarm trigger */
static void
mail_notification (char *mail_address, char *text, time_t app_time)
@@ -524,6 +525,7 @@ program_notification (char *command, int close_standard)
sigaction (SIGINT, &save_intr, NULL);
sigaction (SIGQUIT, &save_quit, NULL);
}
+#endif
/* Queues a snooze alarm */
static void
@@ -1039,6 +1041,7 @@ gnome_calendar_open (GnomeCalendar *gcal,
return 1;
}
+#ifndef NO_WARNINGS
static void
stop_beeping (GtkObject* object, gpointer data)
{
@@ -1070,6 +1073,7 @@ timeout_beep (gpointer data)
stop_beeping (data, NULL);
return FALSE;
}
+#endif
#if 0
diff --git a/calendar/gui/prop.c b/calendar/gui/prop.c
index cd89e19d58..e7e75c6c9b 100644
--- a/calendar/gui/prop.c
+++ b/calendar/gui/prop.c
@@ -848,7 +848,9 @@ create_alarm_page (void)
gtk_table_set_col_spacings (GTK_TABLE (default_table), 4);
gtk_container_add (GTK_CONTAINER (default_frame), default_table);
+#ifndef NO_WARNINGS
#warning "FIX ME"
+#endif
/*
ee_create_ae (GTK_TABLE (default_table), _("Display"),
&alarm_defaults [ALARM_DISPLAY], ALARM_DISPLAY, 1,