4 using bytex64.WebThing;
6 public class MiddleClickOpen : WebThingPlugin {
7 private string LinkUri = null;
10 public override void Init(WebThing wt) {
14 public override void InitWebView(WebView wv) {
15 wv.HoveringOverLink += delegate(object o, HoveringOverLinkArgs e) {
19 wv.ButtonReleaseEvent += WebView_ButtonRelease;
22 private void WebView_ButtonRelease(object o, Gtk.ButtonReleaseEventArgs e) {
23 if (e.Event.Button == 2) {
24 if (LinkUri != null) {
26 wt.WebView.StopLoading();
27 e.RetVal = true; // WHY DOESN'T THIS WORK!?