From bb1f2813043338361f95b0431167a7454075243d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 20 Oct 2009 16:38:04 -0400 Subject: Bug 598567 - Can only insert local image files --- composer/e-msg-composer.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 65bc2acf5e..9e3418a1f2 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2032,6 +2032,7 @@ msg_composer_uri_requested (GtkhtmlEditor *editor, const gchar *uri, GtkHTMLStream *stream) { + GtkhtmlEditorClass *editor_class; EMsgComposer *composer; GHashTable *hash_table; GByteArray *array; @@ -2054,10 +2055,8 @@ msg_composer_uri_requested (GtkhtmlEditor *editor, part = g_hash_table_lookup (hash_table, uri); } - if (part == NULL) { - gtk_html_end (html, stream, GTK_HTML_STREAM_ERROR); - return; - } + if (part == NULL) + goto chainup; array = g_byte_array_new (); camel_stream = camel_stream_mem_new_with_byte_array (array); @@ -2071,6 +2070,13 @@ msg_composer_uri_requested (GtkhtmlEditor *editor, camel_object_unref (camel_stream); gtk_html_end (html, stream, GTK_HTML_STREAM_OK); + + return; + +chainup: + /* Chain up to parent's uri_requested() method. */ + editor_class = GTKHTML_EDITOR_CLASS (parent_class); + editor_class->uri_requested (editor, uri, stream); } static void -- cgit