summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-27 00:34:40 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-27 00:34:40 (EDT)
commitf07b097a9be51b32b797ee4f99916f5eee5de96d (patch)
treed5ab9d975fe70f65867f9f4b8f06f73690a976a5
parent5c94ca562936f6d105946bdf35219e619a08151a (diff)
downloadmarquee-f07b097a9be51b32b797ee4f99916f5eee5de96d.zip
marquee-f07b097a9be51b32b797ee4f99916f5eee5de96d.tar.gz
marquee-f07b097a9be51b32b797ee4f99916f5eee5de96d.tar.bz2
MqTabBody: Populate menu items for selection contexts
And finally get rid of debugging output.
-rw-r--r--src/tab-body.c4
1 files changed, 1 insertions, 3 deletions
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();