aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-01-13 17:29:18 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-01-13 17:29:18 +0800
commit609a0591014db0f10e981388962c328a3f2f935d (patch)
treed1ecb61d8c2ba2cd5904fc708a8e3d19b5107b97 /calendar/gui/dialogs/comp-editor.c
parent1e2901cd509edbbe74b5effd5c44a7570100ca85 (diff)
downloadgsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.tar
gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.tar.gz
gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.tar.bz2
gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.tar.lz
gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.tar.xz
gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.tar.zst
gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.zip
fixes #271810
svn path=/trunk/; revision=31159
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 93ab7fe52d..f17999334e 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -182,6 +182,13 @@ static struct {
{ "text/calendar", 0, GDK_ACTION_COPY },
};
+enum {
+ OBJECT_CREATED,
+ LAST_SIGNAL
+};
+
+static guint comp_editor_signals[LAST_SIGNAL] = { 0 };
+
static void
attach_message(CompEditor *editor, CamelMimeMessage *msg)
{
@@ -534,6 +541,16 @@ comp_editor_class_init (CompEditorClass *klass)
klass->set_e_cal = real_set_e_cal;
klass->edit_comp = real_edit_comp;
klass->send_comp = real_send_comp;
+ klass->object_created = NULL;
+
+ comp_editor_signals[OBJECT_CREATED] =
+ g_signal_new ("object_created",
+ G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (CompEditorClass, object_created),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
widget_class->key_press_event = comp_editor_key_press_event;
object_class->finalize = comp_editor_finalize;
@@ -735,6 +752,8 @@ save_comp (CompEditor *editor)
/* send the component to the server */
if (!cal_comp_is_on_server (priv->comp, priv->client)) {
result = e_cal_create_object (priv->client, icalcomp, NULL, &error);
+ if (result)
+ g_signal_emit_by_name (editor, "object_created");
} else {
if (priv->mod == CALOBJ_MOD_THIS) {
e_cal_component_set_rdate_list (priv->comp, NULL);