[evolution] Disable CompEditor when saving changes
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Disable CompEditor when saving changes
- Date: Tue, 17 Jul 2012 10:50:03 +0000 (UTC)
commit c87e0c1f98c5faefbe350ea9474fa5368b266497
Author: Milan Crha <mcrha redhat com>
Date: Tue Jul 17 12:48:46 2012 +0200
Disable CompEditor when saving changes
calendar/gui/dialogs/comp-editor.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 8d840cb..dbf3cd0 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -669,7 +669,7 @@ save_comp (CompEditor *editor)
listen_for_changes (editor);
}
- priv->changed = FALSE;
+ comp_editor_set_changed (editor, FALSE);
priv->saved = TRUE;
}
@@ -1006,6 +1006,8 @@ save_and_close_editor (CompEditor *editor,
(GtkWindow *) editor, priv->cal_client, priv->comp))
return;
+ gtk_widget_set_sensitive (GTK_WIDGET (editor), FALSE);
+
if (save_comp_with_send (editor)) {
CompEditorFlags flags;
gboolean delegate;
@@ -1038,6 +1040,8 @@ save_and_close_editor (CompEditor *editor,
} else
correct = FALSE;
+ gtk_widget_set_sensitive (GTK_WIDGET (editor), TRUE);
+
if (correct) {
if (can_close)
close_dialog (editor);
@@ -3218,7 +3222,7 @@ real_edit_comp (CompEditor *editor,
fill_widgets (editor);
- priv->changed =FALSE;
+ comp_editor_set_changed (editor, FALSE);
listen_for_changes (editor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]