aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-07-17 18:48:46 +0800
committerMilan Crha <mcrha@redhat.com>2012-07-17 18:49:45 +0800
commitc87e0c1f98c5faefbe350ea9474fa5368b266497 (patch)
treef4d8f0216231c6386420c3f852def10e42c324f4 /calendar/gui
parent360dd80e2575fb40c1328fef652dabfa111c704a (diff)
downloadgsoc2013-evolution-c87e0c1f98c5faefbe350ea9474fa5368b266497.tar
gsoc2013-evolution-c87e0c1f98c5faefbe350ea9474fa5368b266497.tar.gz
gsoc2013-evolution-c87e0c1f98c5faefbe350ea9474fa5368b266497.tar.bz2
gsoc2013-evolution-c87e0c1f98c5faefbe350ea9474fa5368b266497.tar.lz
gsoc2013-evolution-c87e0c1f98c5faefbe350ea9474fa5368b266497.tar.xz
gsoc2013-evolution-c87e0c1f98c5faefbe350ea9474fa5368b266497.tar.zst
gsoc2013-evolution-c87e0c1f98c5faefbe350ea9474fa5368b266497.zip
Disable CompEditor when saving changes
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/comp-editor.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 8d840cbc99..dbf3cd0104 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);
}