From d2a3ec5a4e069d3ab36b32f08bc7dd18ed63d16b Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 26 Jul 2002 17:47:48 +0000 Subject: don't assert on default, when ESC is pressed, the dialog is closed as well 2002-07-26 Radek Doulik * 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 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'composer') 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 + + * 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 * 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 ("" + "" "
" "%s%s%s%s" "
", + composer->signature ? "name:" : "auto", + composer->signature ? composer->signature->name : "", format_html ? "" : "
\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 ();
 	}
 }
 
-- 
cgit