aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@src.gnome.org>2002-08-31 05:58:55 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-08-31 05:58:55 +0800
commit169515d209d163b5b973e0c06a6a3e4eda63818d (patch)
treefd53a93925dbc5f6b574f0674def283286df1ffb
parentb33f2b09f588f592d8ed48ed3412fb9924611db7 (diff)
downloadgsoc2013-evolution-169515d209d163b5b973e0c06a6a3e4eda63818d.tar
gsoc2013-evolution-169515d209d163b5b973e0c06a6a3e4eda63818d.tar.gz
gsoc2013-evolution-169515d209d163b5b973e0c06a6a3e4eda63818d.tar.bz2
gsoc2013-evolution-169515d209d163b5b973e0c06a6a3e4eda63818d.tar.lz
gsoc2013-evolution-169515d209d163b5b973e0c06a6a3e4eda63818d.tar.xz
gsoc2013-evolution-169515d209d163b5b973e0c06a6a3e4eda63818d.tar.zst
gsoc2013-evolution-169515d209d163b5b973e0c06a6a3e4eda63818d.zip
use iframe's fallback content
svn path=/trunk/; revision=17937
-rw-r--r--mail/mail-display.c2
-rw-r--r--mail/mail-format.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 0cace663ff..e1c2b3a509 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -1651,7 +1651,7 @@ mail_text_write (GtkHTML *html, GtkHTMLStream *stream, MailDisplay *md, CamelMim
g_free (htmltext);
xed = g_strdup_printf ("x-evolution-data:%p-%d", part, idx);
- iframe = g_strdup_printf ("<iframe src=\"%s\" frameborder=0 scrolling=no></iframe>", xed);
+ iframe = g_strdup_printf ("<iframe src=\"%s\" frameborder=0 scrolling=no>could not get %s</iframe>", xed, xed);
mail_display_add_url (md, "data_urls", xed, ba);
gtk_html_write (html, stream, iframe, strlen (iframe));
g_free (iframe);
diff --git a/mail/mail-format.c b/mail/mail-format.c
index a4723cc2c1..9696af3b1d 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -219,7 +219,7 @@ mail_format_raw_message (CamelMimeMessage *mime_message, MailDisplay *md,
g_free (html_str);
xed = g_strdup_printf ("x-evolution-data:%p", mime_message);
- iframe = g_strdup_printf ("<iframe src=\"%s\" frameborder=0 scrolling=no></iframe>", xed);
+ iframe = g_strdup_printf ("<iframe src=\"%s\" frameborder=0 scrolling=no>could not get %s</iframe>", xed, xed);
mail_display_add_url (md, "data_urls", xed, ba);
mail_html_write (html, stream, iframe);
g_free (iframe);
@@ -1391,7 +1391,7 @@ handle_text_plain_flowed (char *buf, CamelMimePart *part, MailDisplay *md, GtkHT
g_byte_array_append (ba, "</tt>\n", 6);
xed = g_strdup_printf ("x-evolution-data:%p", part);
- iframe = g_strdup_printf ("<iframe src=\"%s\" frameborder=0 scrolling=no></iframe>", xed);
+ iframe = g_strdup_printf ("<iframe src=\"%s\" frameborder=0 scrolling=no>could not get %s</iframe>", xed, xed);
mail_display_add_url (md, "data_urls", xed, ba);
mail_html_write (html, stream, iframe);
g_free (iframe);
@@ -1686,7 +1686,7 @@ handle_text_enriched (CamelMimePart *part, const char *mime_type,
g_string_free (string, TRUE);
xed = g_strdup_printf ("x-evolution-data:%p", part);
- gtk_html_stream_printf (stream, "<iframe src=\"%s\" frameborder=0 scrolling=no></iframe>", xed);
+ gtk_html_stream_printf (stream, "<iframe src=\"%s\" frameborder=0 scrolling=no>could not get %s</iframe>", xed, xed);
mail_display_add_url (md, "data_urls", xed, ba);
return TRUE;
@@ -1720,7 +1720,7 @@ handle_text_html (CamelMimePart *part, const char *mime_type,
location = get_location (part, md);
if (!location)
location = get_cid (part, md);
- gtk_html_stream_printf (stream, "<iframe src=\"%s\" frameborder=0 scrolling=no></iframe>", location);
+ gtk_html_stream_printf (stream, "<iframe src=\"%s\" frameborder=0 scrolling=no>could not get %s</iframe>", location, location);
return TRUE;
}