[anjal] BUGFIX: GNOME Bugzilla #591649 - Dialog pops up and hides while sending



commit d22a7bac03f0e3aaa89f7cddec8bd20a2144f1de
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Thu Aug 13 11:22:57 2009 +0530

    BUGFIX: GNOME Bugzilla #591649 - Dialog pops up and hides while sending
    mails.

 src/mail-composer-view.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/mail-composer-view.c b/src/mail-composer-view.c
index e3049a4..aad5a19 100644
--- a/src/mail-composer-view.c
+++ b/src/mail-composer-view.c
@@ -38,6 +38,8 @@ struct  _MailComposerViewPrivate {
 	GtkWidget *box;
 	GtkWidget *composer;
 	GList *children;
+
+	gboolean sending;
 };
 
 enum {
@@ -58,6 +60,7 @@ mail_composer_view_init (MailComposerView  *shell)
 	shell->priv = g_new0(MailComposerViewPrivate, 1);
 	shell->uri = "new-message://";
 	shell->type = MAIL_VIEW_COMPOSER;
+	shell->priv->sending = FALSE;
 }
 
 static void
@@ -119,7 +122,7 @@ composer_close_cb (struct _EMsgComposer *composer, MailComposerView *mcv)
 {
 	/*Emit view-close signal.*/
 	//g_object_unref (composer);
-
+	mcv->priv->sending = TRUE;
 	g_signal_emit (mcv, signals[VIEW_CLOSE], 0);
 }
 
@@ -235,6 +238,9 @@ mail_composer_view_can_quit (MailComposerView *mcv)
 	gint response;
 
 	editor = GTKHTML_EDITOR(composer);
+	
+	if (mcv->priv->sending)
+		return TRUE;
 
 	if (gtkhtml_editor_get_changed(editor) && !e_msg_composer_is_exiting (composer)) {
 		const char *subject;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]