aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/save-comp.c
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2009-11-26 18:19:51 +0800
committerPaul Bolle <pebolle@tiscali.nl>2009-11-26 18:19:51 +0800
commit8a2c7800850d6726328c354fc3399d3ea34a0c34 (patch)
treee7faed13afb09eadde2a031bdc1ef18d58a8796f /calendar/gui/dialogs/save-comp.c
parentaf960510bdb32deb387436f9dcb436093ff6d527 (diff)
downloadgsoc2013-evolution-8a2c7800850d6726328c354fc3399d3ea34a0c34.tar
gsoc2013-evolution-8a2c7800850d6726328c354fc3399d3ea34a0c34.tar.gz
gsoc2013-evolution-8a2c7800850d6726328c354fc3399d3ea34a0c34.tar.bz2
gsoc2013-evolution-8a2c7800850d6726328c354fc3399d3ea34a0c34.tar.lz
gsoc2013-evolution-8a2c7800850d6726328c354fc3399d3ea34a0c34.tar.xz
gsoc2013-evolution-8a2c7800850d6726328c354fc3399d3ea34a0c34.tar.zst
gsoc2013-evolution-8a2c7800850d6726328c354fc3399d3ea34a0c34.zip
Bug #550025 - Add error dialogs for Meetings
Diffstat (limited to 'calendar/gui/dialogs/save-comp.c')
-rw-r--r--calendar/gui/dialogs/save-comp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/save-comp.c b/calendar/gui/dialogs/save-comp.c
index 7284f1d0d5..0d42b73b91 100644
--- a/calendar/gui/dialogs/save-comp.c
+++ b/calendar/gui/dialogs/save-comp.c
@@ -44,10 +44,15 @@ GtkResponseType
save_component_dialog (GtkWindow *parent, ECalComponent *comp)
{
ECalComponentVType vtype = e_cal_component_get_vtype(comp);
+ CompEditorFlags flags;
switch (vtype) {
case E_CAL_COMPONENT_EVENT:
- return e_error_run (parent, "calendar:prompt-save-appointment", NULL);
+ flags = comp_editor_get_flags (COMP_EDITOR(parent));
+ if (flags & COMP_EDITOR_MEETING)
+ return e_error_run (parent, "calendar:prompt-save-meeting", NULL);
+ else
+ return e_error_run (parent, "calendar:prompt-save-appointment", NULL);
case E_CAL_COMPONENT_TODO:
return e_error_run (parent, "calendar:prompt-save-task", NULL);
case E_CAL_COMPONENT_JOURNAL: