From 3f060f07b401bad248daab957bbc79a6d21afb6c Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 24 Jul 2003 14:58:40 +0000 Subject: define ECalViewEvent as the base struct for the other views. 2003-07-24 Rodrigo Moya * gui/e-cal-view.h: define ECalViewEvent as the base struct for the other views. * gui/e-day-view.[ch]: EDayViewEvent is now based on ECalViewEvent. (e_day_view_get_selected_events): made it return a list of ECalViewEvent's, not CalComponent's, so that we can get more information about the events. * gui/e-week-view.[ch]: EWeekViewEvent is now based on ECalViewEvent. (e_week_view_get_selected_events): same as e_day_view_get_selected_events. * gui/e-cal-view.c (e_cal_view_cut_clipboard, e_cal_view_copy_clipboard, e_cal_view_delete_selected_event, e_cal_view_delete_selected_events, on_edit_appointment, on_save_as, on_print_event, on_meeting, on_forward, e_cal_view_create_popup_menu): * gui/calendar-commands.c (sensitize_calendar_commands): updated to read ECalViewEvent's instead of CalComponent's as returned by e_cal_view_get_selected_events(). svn path=/trunk/; revision=21946 --- calendar/gui/calendar-commands.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'calendar/gui/calendar-commands.c') diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index d756f52cff..cda78827df 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -599,20 +599,20 @@ sensitize_calendar_commands (GnomeCalendar *gcal, BonoboControl *control, gboole /* occurrence-related menu items */ has_recurrences = FALSE; if (n_selected > 0 && !read_only) { - CalComponent *comp; + ECalViewEvent *event; GList *list; GtkWidget *view; view = gnome_calendar_get_current_view_widget (gcal); list = e_cal_view_get_selected_events (E_CAL_VIEW (view)); if (list) { - comp = (CalComponent *) list->data; + event = (ECalViewEvent *) list->data; g_list_free (list); } else - comp = NULL; + event = NULL; - if (comp) { - if (cal_component_has_recurrences (comp)) + if (event) { + if (cal_component_has_recurrences (event->comp)) has_recurrences = TRUE; } } -- cgit v1.2.3