From f07b097a9be51b32b797ee4f99916f5eee5de96d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 27 Sep 2017 00:34:40 -0400 Subject: MqTabBody: Populate menu items for selection contexts And finally get rid of debugging output. --- (limited to 'src') diff --git a/src/tab-body.c b/src/tab-body.c index 88da124..99b52ca 100644 --- a/src/tab-body.c +++ b/src/tab-body.c @@ -348,7 +348,6 @@ context_menu_cb(WebKitWebView __attribute__((unused)) *web_view, g_object_ref(body->hit_test_result); context_handled = FALSE; - g_print("Context menu, hit test:"); if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK) { context_menu_link_cb(context_menu, body); context_handled = TRUE; @@ -373,14 +372,13 @@ context_menu_cb(WebKitWebView __attribute__((unused)) *web_view, if (!context_handled && context & WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT) { if (is_selection) { - g_print(" selection"); + RESTORE_ITEMS(edit_items); /* _Copy */ context_handled = TRUE; } else { context_menu_document_cb(context_menu, nav_items, body); context_handled = TRUE; } } - g_print("\n"); if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT) { if (context_handled) { NEW_SEPARATOR_ITEM(); -- cgit v0.9.1