From 31289d7eb3a248073fa138e0210976f44dd6fdff Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 5 May 2003 00:56:34 +0000 Subject: remove the assert, if we dont understand the response, assume it's a 2003-05-02 Not Zed * e-request.c (e_request_string): remove the assert, if we dont understand the response, assume it's a cancel. GTK_RESPONSE_DELETE_EVENT wasn't handled [#42038]. svn path=/trunk/; revision=21100 --- e-util/ChangeLog | 6 ++++++ e-util/e-request.c | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 08d7415d69..caa8a3fb05 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,9 @@ +2003-05-02 Not Zed + + * e-request.c (e_request_string): remove the assert, if we dont + understand the response, assume it's a cancel. + GTK_RESPONSE_DELETE_EVENT wasn't handled [#42038]. + 2003-04-30 Ettore Perazzoli * e-request.c (e_request_string): Handle GTK_RESPONSE_NONE. diff --git a/e-util/e-request.c b/e-util/e-request.c index 6d110cfdf8..65c6a8e84b 100644 --- a/e-util/e-request.c +++ b/e-util/e-request.c @@ -91,12 +91,9 @@ e_request_string (GtkWindow *parent, case GTK_RESPONSE_OK: text = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry))); break; - case GTK_RESPONSE_CANCEL: - case GTK_RESPONSE_NONE: + default: text = NULL; break; - default: - g_assert_not_reached (); } gtk_widget_destroy (dialog); -- cgit