diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-05-19 11:05:25 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-05-19 11:05:25 +0800 |
commit | 98c32c5c1150085a7073ba258ad2cd362abf53fb (patch) | |
tree | 1dcabf0df22a6371504174c95101a95dad85d638 /calendar/gui/e-day-view.c | |
parent | 0289b860358dfe5bc1e189f910e347b54b8ab451 (diff) | |
download | gsoc2013-evolution-98c32c5c1150085a7073ba258ad2cd362abf53fb.tar.gz gsoc2013-evolution-98c32c5c1150085a7073ba258ad2cd362abf53fb.tar.zst gsoc2013-evolution-98c32c5c1150085a7073ba258ad2cd362abf53fb.zip |
Fix bug #2829.
2001-05-18 Federico Mena Quintero <federico@ximian.com>
Fix bug #2829.
* gui/dialogs/delete-comp.c (delete_component_dialog): Allow the
caller to specify whether just one or many components are to be
deleted.
* gui/e-calendar-table.c (tasks_popup_one): Popup menu definition
for when one and only one task is selected.
(tasks_popup_many): Likewise, for more than one task.
(e_calendar_table_on_right_click): Do not create a structure for
the closure data; we can simply pass the cal_table. Use a
different menu depending on the number of selected tasks.
(mark_as_complete_cb): Renamed; now iterates over the selected
rows.
(delete_selected_components): New function to delete all the
selected components.
(delete_cb): Adjusted for delete_component_dialog().
(open_task): New function, simply open a CalComponent in the task
editor.
(open_task_by_row): Renamed; use open_task().
* gui/e-week-view.c (e_week_view_on_delete_appointment): Updated
for delete_component_dialog().
* gui/e-day-view.c (e_day_view_on_delete_appointment): Likewise.
svn path=/trunk/; revision=9886
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index b19c7ff310..eac99a18aa 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -3321,6 +3321,7 @@ e_day_view_on_delete_appointment (GtkWidget *widget, gpointer data) { EDayView *day_view; EDayViewEvent *event; + CalComponentVType vtype; day_view = E_DAY_VIEW (data); @@ -3331,7 +3332,9 @@ e_day_view_on_delete_appointment (GtkWidget *widget, gpointer data) if (day_view->editing_event_day >= 0) e_day_view_stop_editing_event (day_view); - if (delete_component_dialog (event->comp, widget)) { + vtype = cal_component_get_vtype (event->comp); + + if (delete_component_dialog (event->comp, 1, vtype, widget)) { const char *uid; cal_component_get_uid (event->comp, &uid); |