[Xfce4-commits] <postler:master> Forward new windows from messages so they are normally opened
Christian Dywan
noreply at xfce.org
Sun Jun 13 23:04:03 CEST 2010
Updating branch refs/heads/master
to 374debf58090a1bbc3f1d28ddf0945d7c8dfef47 (commit)
from 1f9cfd13942ca2b0aeab510657ae902c7071cddf (commit)
commit 374debf58090a1bbc3f1d28ddf0945d7c8dfef47
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Jun 13 22:56:44 2010 +0200
Forward new windows from messages so they are normally opened
postler/postler-content.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 59b77c0..4e95806 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -92,6 +92,7 @@ public class Postler.Content : WebKit.WebView {
settings.set ("enable-private-browsing", true, null);
}
navigation_policy_decision_requested.connect (navigation_decision);
+ create_web_view.connect (new_window_created);
populate_popup.connect (populate_menu);
}
@@ -580,5 +581,10 @@ public class Postler.Content : WebKit.WebView {
decision.ignore ();
return Postler.App.show_uri (get_screen (), uri);
}
+
+ unowned WebKit.WebView new_window_created (WebKit.WebFrame web_frame) {
+ /* Forward new windows, we never open new windows of our own */
+ return this;
+ }
}
More information about the Xfce4-commits
mailing list