[Xfce4-commits] <postler:master> Don't use view-source: prefix for source views
Christian Dywan
noreply at xfce.org
Thu Mar 3 00:14:01 CET 2011
Updating branch refs/heads/master
to e44573c1791eaba704d81afa1852d29ce3a7084a (commit)
from 4913741254c2e82acf3191e845f83ddab9de1dc6 (commit)
commit e44573c1791eaba704d81afa1852d29ce3a7084a
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Mar 2 23:32:16 2011 +0100
Don't use view-source: prefix for source views
Because that breaks copying of the filename.
postler/postler-content.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index dee2f7c..ccc5049 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -291,7 +291,7 @@ public class Postler.Content : WebKit.WebView {
menuitem.show ();
menu.append (menuitem);
- if (last_location.has_prefix ("view-source:"))
+ if (get_view_source_mode ())
return;
menuitem = new Gtk.SeparatorMenuItem ();
@@ -602,7 +602,7 @@ public class Postler.Content : WebKit.WebView {
}
public void display_source (string location) {
- last_location = "view-source:" + location;
+ last_location = location;
subject = _("Source Code: %s").printf (location);
string line;
More information about the Xfce4-commits
mailing list