[Xfce4-commits] <postler:master> Try to convert from URI on command line, fallback to filename
Christian Dywan
noreply at xfce.org
Sat Jul 10 00:24:19 CEST 2010
Updating branch refs/heads/master
to ac8524af5b9998e913a08e744b78a1b53107069e (commit)
from e7eafb3ed39588fba3e6cb698d69dc7c53a1dc88 (commit)
commit ac8524af5b9998e913a08e744b78a1b53107069e
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Jul 2 22:08:18 2010 +0200
Try to convert from URI on command line, fallback to filename
postler/postler-reader.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/postler/postler-reader.vala b/postler/postler-reader.vala
index 03f746b..7672923 100644
--- a/postler/postler-reader.vala
+++ b/postler/postler-reader.vala
@@ -71,7 +71,11 @@ public class Postler.Reader {
Postler.Content content = (Postler.Content)instance;
if (module == "source")
content.view_source = true;
- content.display (filenames[0]);
+ try {
+ content.display (Filename.from_uri (filenames[0], null));
+ } catch (GLib.Error error) {
+ content.display (filenames[0]);
+ }
title = content.subject;
}
if (module == "source") {
More information about the Xfce4-commits
mailing list