diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2004-11-29 16:45:59 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2004-11-29 16:45:59 +0800 |
commit | 3e3dcc5c1160ce23415ebcd962bbc661e834c0f1 (patch) | |
tree | 929d9d8cc83d1b17cd03ad0a14dbb51ad78c859f | |
parent | 8f5eddf80f57269815396e8821347a27aeff2505 (diff) | |
download | gsoc2013-evolution-3e3dcc5c1160ce23415ebcd962bbc661e834c0f1.tar.gz gsoc2013-evolution-3e3dcc5c1160ce23415ebcd962bbc661e834c0f1.tar.zst gsoc2013-evolution-3e3dcc5c1160ce23415ebcd962bbc661e834c0f1.zip |
Moved the call for the warning dialog (send_component_prompt_subject)
2004-11-29 Chenthill Palanisamy <pchenthill@novell.com>
* gui/dialogs/comp-editor.c (response_cb): Moved the call
for the warning dialog (send_component_prompt_subject) after
the component is saved (save_comp_with_send).
svn path=/trunk/; revision=28009
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 14 |
2 files changed, 14 insertions, 6 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 6ea90e5438..d50ad1e371 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2004-11-29 Chenthill Palanisamy <pchenthill@novell.com> + + * gui/dialogs/comp-editor.c (response_cb): Moved the call + for the warning dialog (send_component_prompt_subject) after + the component is saved (save_comp_with_send). + 2004-11-26 JP Rosevear <jpr@novell.com> * gui/alarm-notify/alarm-queue.c (display_notification): ditto diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 8003f85f69..17e723d6f2 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -359,15 +359,17 @@ response_cb (GtkWidget *widget, int response, gpointer data) if (!recur_component_dialog (priv->client, priv->comp, &priv->mod, GTK_WINDOW (editor))) return; - e_cal_component_get_summary (priv->comp, &text); + if (save_comp_with_send (editor)) { + + e_cal_component_get_summary (priv->comp, &text); - if (!text.value) { - if (!send_component_prompt_subject ((GtkWindow *) editor, priv->client, priv->comp)) - return; + if (!text.value) { + if (!send_component_prompt_subject ((GtkWindow *) editor, priv->client, priv->comp)) + return; + } + close_dialog (editor); } - if (save_comp_with_send (editor)) - close_dialog (editor); break; case GTK_RESPONSE_CANCEL: case GTK_RESPONSE_DELETE_EVENT: |