summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 02:51:05 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 02:51:05 (EDT)
commit9d08c967edc99d81dae8bef7487bf5d411118c69 (patch)
tree5b1f0250198b31c935b220433fb95ec0ba406a3c
parent49f65fb9c7ad685dc462a3ab8edba76ca0ffc5ce (diff)
downloadmarquee-9d08c967edc99d81dae8bef7487bf5d411118c69.zip
marquee-9d08c967edc99d81dae8bef7487bf5d411118c69.tar.gz
marquee-9d08c967edc99d81dae8bef7487bf5d411118c69.tar.bz2
MqWebView: Change type of Web view parameter in callback
-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