diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-07-24 22:58:40 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-07-24 22:58:40 +0800 |
commit | 3f060f07b401bad248daab957bbc79a6d21afb6c (patch) | |
tree | dfcf1194499596f2d95f70e727291c10bb263fd5 /calendar/gui/calendar-commands.c | |
parent | 148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec (diff) | |
download | gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.tar.gz gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.tar.zst gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.zip |
define ECalViewEvent as the base struct for the other views.
2003-07-24 Rodrigo Moya <rodrigo@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; } } |