aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/send-comp.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2004-11-25 15:59:05 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2004-11-25 15:59:05 +0800
commit28e3f4b36be3dac5eea28e06c63384e81011a41e (patch)
tree7288764d1918241ad98e6a59b9365efe09ca7a0a /calendar/gui/dialogs/send-comp.c
parent8ac90709191dc3bbd8927726b0b3f47d83a3ee05 (diff)
downloadgsoc2013-evolution-28e3f4b36be3dac5eea28e06c63384e81011a41e.tar
gsoc2013-evolution-28e3f4b36be3dac5eea28e06c63384e81011a41e.tar.gz
gsoc2013-evolution-28e3f4b36be3dac5eea28e06c63384e81011a41e.tar.bz2
gsoc2013-evolution-28e3f4b36be3dac5eea28e06c63384e81011a41e.tar.lz
gsoc2013-evolution-28e3f4b36be3dac5eea28e06c63384e81011a41e.tar.xz
gsoc2013-evolution-28e3f4b36be3dac5eea28e06c63384e81011a41e.tar.zst
gsoc2013-evolution-28e3f4b36be3dac5eea28e06c63384e81011a41e.zip
Added two error ids to display use it when the meeting is created without
2004-11-25 Chenthill Palanisamy <pchenthill@novell.com> * calendar-errors.xml: Added two error ids to display use it when the meeting is created without a summary. * gui/dialogs/send-comp.[ch] (send_component_prompt_subject): Added a function to prompt for a dialog when a meeting/assigned task is sent without a summary. * gui/dialogs/comp-editor.c (response_cb): Called the above mentioned function when the summary is not present. svn path=/trunk/; revision=27987
Diffstat (limited to 'calendar/gui/dialogs/send-comp.c')
-rw-r--r--calendar/gui/dialogs/send-comp.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/send-comp.c b/calendar/gui/dialogs/send-comp.c
index 882368a4d6..bc5ce3a35e 100644
--- a/calendar/gui/dialogs/send-comp.c
+++ b/calendar/gui/dialogs/send-comp.c
@@ -73,3 +73,34 @@ send_component_dialog (GtkWindow *parent, ECal *client, ECalComponent *comp, gbo
else
return FALSE;
}
+
+gboolean
+send_component_prompt_subject (GtkWindow *parent, ECal *client, ECalComponent *comp)
+{
+ ECalComponentVType vtype;
+ const char *id;
+
+ vtype = e_cal_component_get_vtype (comp);
+
+ switch (vtype) {
+ case E_CAL_COMPONENT_EVENT:
+ id = "calendar:prompt-send-no-subject-calendar";
+ break;
+
+ case E_CAL_COMPONENT_TODO:
+ id = "calendar:prompt-send-no-subject-task";
+ break;
+
+ default:
+ g_message ("send_component_prompt_subject(): "
+ "Cannot handle object of type %d", vtype);
+ return FALSE;
+ }
+
+ if (e_error_run (parent, id, NULL) == GTK_RESPONSE_YES)
+ return TRUE;
+ else
+ return FALSE;
+}
+
+