aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-05-19 11:05:25 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-05-19 11:05:25 +0800
commit98c32c5c1150085a7073ba258ad2cd362abf53fb (patch)
tree1dcabf0df22a6371504174c95101a95dad85d638 /calendar/gui/e-week-view.c
parent0289b860358dfe5bc1e189f910e347b54b8ab451 (diff)
downloadgsoc2013-evolution-98c32c5c1150085a7073ba258ad2cd362abf53fb.tar
gsoc2013-evolution-98c32c5c1150085a7073ba258ad2cd362abf53fb.tar.gz
gsoc2013-evolution-98c32c5c1150085a7073ba258ad2cd362abf53fb.tar.bz2
gsoc2013-evolution-98c32c5c1150085a7073ba258ad2cd362abf53fb.tar.lz
gsoc2013-evolution-98c32c5c1150085a7073ba258ad2cd362abf53fb.tar.xz
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-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 96270c04aa..447fce8b77 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3450,6 +3450,7 @@ e_week_view_on_delete_appointment (GtkWidget *widget, gpointer data)
{
EWeekView *week_view;
EWeekViewEvent *event;
+ CalComponentVType vtype;
week_view = E_WEEK_VIEW (data);
@@ -3459,7 +3460,9 @@ e_week_view_on_delete_appointment (GtkWidget *widget, gpointer data)
event = &g_array_index (week_view->events, EWeekViewEvent,
week_view->popup_event_num);
- 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);