[evolution/gnome-3-4] Disable CompEditor when saving changes
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-4] Disable CompEditor when saving changes
- Date: Tue, 17 Jul 2012 10:50:17 +0000 (UTC)
commit 9db89ca4b0efb1dfd857ecb9ae4aa005e4097fde
Author: Milan Crha <mcrha redhat com>
Date: Tue Jul 17 12:49: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 641666b..cc8657e 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -665,7 +665,7 @@ save_comp (CompEditor *editor)
listen_for_changes (editor);
}
- priv->changed = FALSE;
+ comp_editor_set_changed (editor, FALSE);
priv->saved = TRUE;
}
@@ -996,6 +996,8 @@ action_save_cb (GtkAction *action,
(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;
@@ -1028,6 +1030,8 @@ action_save_cb (GtkAction *action,
} else
correct = FALSE;
+ gtk_widget_set_sensitive (GTK_WIDGET (editor), TRUE);
+
if (correct)
close_dialog (editor);
}
@@ -3125,7 +3129,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]