[Xfce4-commits] <postler:master> Always render source with plain text type
Christian Dywan
noreply at xfce.org
Sat Feb 12 16:44:03 CET 2011
Updating branch refs/heads/master
to 8637d01828b14d6a59e20df967f42456feaf61d7 (commit)
from 416e23a6ad570229208e364d263710424cea930a (commit)
commit 8637d01828b14d6a59e20df967f42456feaf61d7
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Feb 12 15:54:11 2011 +0100
Always render source with plain text type
Fixes: https://bugs.launchpad.net/postler/+bug/691226
postler/postler-content.vala | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index bbcc8ca..fea6419 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -609,8 +609,8 @@ public class Postler.Content : WebKit.WebView {
content_type = parts[1].strip ();
else if (field == "subject")
subject = _("Source Code: %s").printf (parse_encoded (parts[1], out charset));
- body.append (line + "\n");
}
+ body.append (line + "\n");
}
} catch (GLib.Error error) {
display_error (_("Failed to view source: %s").printf (error.message));
@@ -621,10 +621,8 @@ public class Postler.Content : WebKit.WebView {
string? fname = null;
parse_content_type (content_type, ref charset, ref boundary,
ref mime_type, ref fname);
-
- /* FIXME view_source_mode requires WebKitGTK+ 1.1.something */
set_view_source_mode (true);
- load_string (body.str, mime_type, charset, "about:blank");
+ load_string (body.str, "text/plain", charset, "about:blank");
}
string selected_address () {
More information about the Xfce4-commits
mailing list