[anjal] More fixes around the composer modified area.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjal] More fixes around the composer modified area.
- Date: Thu, 13 Aug 2009 06:55:24 +0000 (UTC)
commit 1e626d34c324f1f748c628138ff0b4d73c490010
Author: Srinivasa Ragavan <sragavan novell com>
Date: Thu Aug 13 11:32:37 2009 +0530
More fixes around the composer modified area.
src/mail-composer-view.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/mail-composer-view.c b/src/mail-composer-view.c
index aad5a19..a083504 100644
--- a/src/mail-composer-view.c
+++ b/src/mail-composer-view.c
@@ -122,6 +122,14 @@ composer_close_cb (struct _EMsgComposer *composer, MailComposerView *mcv)
{
/*Emit view-close signal.*/
//g_object_unref (composer);
+ g_signal_emit (mcv, signals[VIEW_CLOSE], 0);
+}
+
+static void
+composer_send_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);
}
@@ -174,7 +182,7 @@ mail_composer_view_construct (MailComposerView *shell, struct _EMsgComposer *new
priv->box = box;
gtk_box_pack_start ((GtkBox *)shell, box, TRUE, TRUE, 0);
- g_signal_connect (composer, "send", G_CALLBACK(composer_close_cb), shell);
+ g_signal_connect (composer, "send", G_CALLBACK(composer_send_close_cb), shell);
priv->composer = (GtkWidget *)composer;
gtk_widget_show (tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]