From: Daniel Carl Date: Tue, 2 Jul 2013 19:42:06 +0000 (+0200) Subject: Fixed wrong opened page from right click context menu (#41). X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=d9033328c426a40ed6a317d4b45079af54e19f98;p=vimb.git Fixed wrong opened page from right click context menu (#41). "Open Link in New Window" from the right click context menu opened the current page and not the linked one. --- diff --git a/src/main.c b/src/main.c index 1c1f59c..b4bc6e9 100644 --- a/src/main.c +++ b/src/main.c @@ -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));