aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-07-27 01:47:48 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-07-27 01:47:48 +0800
commitd2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b (patch)
treead2ebf61ca4b03199816c5b939aa382bdd50a241 /composer
parent67b895cf5511386a5533c0bb99016360a82710bc (diff)
downloadgsoc2013-evolution-d2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b.tar
gsoc2013-evolution-d2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b.tar.gz
gsoc2013-evolution-d2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b.tar.bz2
gsoc2013-evolution-d2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b.tar.lz
gsoc2013-evolution-d2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b.tar.xz
gsoc2013-evolution-d2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b.tar.zst
gsoc2013-evolution-d2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b.zip
don't assert on default, when ESC is pressed, the dialog is closed as well
2002-07-26 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (do_exit): don't assert on default, when ESC is pressed, the dialog is closed as well and we get button number -1 svn path=/trunk/; revision=17611
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index e70da84b40..dd212d2cc6 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-26 Radek Doulik <rodo@ximian.com>
+
+ * e-msg-composer.c (do_exit): don't assert on default, when ESC is
+ pressed, the dialog is closed as well and we get button number -1
+
2002-07-26 Ettore Perazzoli <ettore@ximian.com>
* e-msg-composer-attachment-bar.c (pixbuf_for_mime_type):
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index c1b493b65c..426830d0e7 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -950,9 +950,12 @@ get_signature_html (EMsgComposer *composer)
* section 4.3.2.
*/
html = g_strdup_printf ("<!--+GtkHTML:<DATA class=\"ClueFlow\" key=\"signature\" value=\"1\">-->"
+ "<!--+GtkHTML:<DATA class=\"ClueFlow\" key=\"signature_name\" value=\"%s%s\">-->"
"<TABLE WIDTH=\"100%%\" CELLSPACING=\"0\" CELLPADDING=\"0\"><TR><TD>"
"%s%s%s%s"
"</TD></TR></TABLE>",
+ composer->signature ? "name:" : "auto",
+ composer->signature ? composer->signature->name : "",
format_html ? "" : "<PRE>\n",
format_html || (!strncmp ("-- \n", text, 4) || strstr(text, "\n-- \n")) ? "" : "-- \n",
text,
@@ -1433,10 +1436,8 @@ do_exit (EMsgComposer *composer)
case 1: /* Don't save */
gtk_widget_destroy (GTK_WIDGET (composer));
break;
- case 2: /* Cancel */
+ default: /* Cancel */
break;
- default:
- g_assert_not_reached ();
}
}