diff options
author | JP Rosevear <jpr@ximian.com> | 2001-08-15 23:30:45 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-08-15 23:30:45 +0800 |
commit | 732c21a0a85b742dd5741b6b1f9823892a62509e (patch) | |
tree | 61ec63373633aaa6e244b87108e39006e250aa55 /calendar | |
parent | 800c67cb4b02698c75b74766dc5a6d7dabbabaa3 (diff) | |
download | gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.tar.gz gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.tar.zst gsoc2013-evolution-732c21a0a85b742dd5741b6b1f9823892a62509e.zip |
only fill the component and save it if something has changed
2001-08-15 JP Rosevear <jpr@ximian.com>
* gui/dialogs/comp-editor.c (save_comp): only fill the component
and save it if something has changed
(save_comp_with_send): only try to send if something has changed
and the editor needs a send
svn path=/trunk/; revision=12052
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index fd94438051..99b3d7e9b7 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2001-08-15 JP Rosevear <jpr@ximian.com> + + * gui/dialogs/comp-editor.c (save_comp): only fill the component + and save it if something has changed + (save_comp_with_send): only try to send if something has changed + and the editor needs a send + 2001-08-15 Federico Mena Quintero <federico@ximian.com> * gui/dialogs/cal-prefs-dialog.glade: OK, re-added the default diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 447d5b4fa0..2cbf403cd3 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -721,6 +721,9 @@ save_comp (CompEditor *editor) GList *l; priv = editor->priv; + + if (!priv->changed) + return; for (l = priv->pages; l != NULL; l = l->next) comp_editor_page_fill_component (l->data, priv->comp); @@ -740,12 +743,15 @@ static void save_comp_with_send (CompEditor *editor) { CompEditorPrivate *priv; - + gboolean send; + priv = editor->priv; + send = priv->changed && priv->needs_send; + save_comp (editor); - if (priv->needs_send && send_component_dialog (priv->comp)) + if (send && send_component_dialog (priv->comp)) comp_editor_send_comp (editor, CAL_COMPONENT_METHOD_REQUEST); } |