Fixed wrong opened page from right click context menu (#41).
authorDaniel Carl <danielcarl@gmx.de>
Tue, 2 Jul 2013 19:42:06 +0000 (21:42 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 2 Jul 2013 19:42:06 +0000 (21:42 +0200)
"Open Link in New Window" from the right click context menu opened the current
page and not the linked one.

src/main.c

index 1c1f59c..b4bc6e9 100644 (file)
@@ -911,7 +911,7 @@ static WebKitWebView *create_web_view_cb(WebKitWebView *view, WebKitWebFrame *fr
 
 static void create_web_view_received_uri_cb(WebKitWebView *view)
 {
-    Arg a = {VB_TARGET_NEW, (char*)GET_URI()};
+    Arg a = {VB_TARGET_NEW, (char*)webkit_web_view_get_uri(view)};
     /* destroy temporary webview */
     webkit_web_view_stop_loading(view);
     gtk_widget_destroy(GTK_WIDGET(view));