summaryrefslogtreecommitdiffstats
path: root/src/web-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/web-view.c')
-rw-r--r--src/web-view.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/web-view.c b/src/web-view.c
index b31336a..038b45d 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -317,10 +317,9 @@ context_menu_document_cb(WebKitContextMenu *context_menu, GList *nav_items,
} G_STMT_END
static gboolean
-context_menu_cb(WebKitWebView *wk_web_view, WebKitContextMenu *context_menu,
+context_menu_cb(MqWebView *web_view, WebKitContextMenu *context_menu,
GdkEvent G_GNUC_UNUSED *event, WebKitHitTestResult *hit_test_result)
{
- MqWebView *web_view;
GList *items;
GList *nav_items;
GList *edit_items;
@@ -336,8 +335,6 @@ context_menu_cb(WebKitWebView *wk_web_view, WebKitContextMenu *context_menu,
gboolean context_handled;
WebKitContextMenuItem *menu_item;
- web_view = MQ_WEB_VIEW(wk_web_view);
-
/* Get more hints about the context, since WebKit doesn't describe
* context very well in hit test results. Also, preserve menu items
* that aren't easy to reproduce (e.g. the Unicode menu and spelling