diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-26 18:55:54 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-26 18:55:54 (EDT) |
commit | b1387b34d0fb3baaa10e3e6e5d9d193b35749828 (patch) | |
tree | 8d53e580219317ac0b2c89aef5c963d94b76e283 | |
parent | 939fd6ecc8fd0087be6eb7dc148fb30a0ab160e7 (diff) | |
download | marquee-b1387b34d0fb3baaa10e3e6e5d9d193b35749828.zip marquee-b1387b34d0fb3baaa10e3e6e5d9d193b35749828.tar.gz marquee-b1387b34d0fb3baaa10e3e6e5d9d193b35749828.tar.bz2 |
MqTabBody: Add separator between link and image menu items
-rw-r--r-- | src/tab-body.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tab-body.c b/src/tab-body.c index ac05cae..72fa871 100644 --- a/src/tab-body.c +++ b/src/tab-body.c @@ -99,8 +99,8 @@ menu_open_image_win_activate_cb(GtkAction __attribute__((unused)) *action, } while (0) #define NEW_SEPARATOR_ITEM() \ do { \ - menu_item = webkit_context_menu_item_new_separator(); \ - webkit_context_menu_append(context_menu, menu_item); \ + webkit_context_menu_append(context_menu, \ + webkit_context_menu_item_new_separator()); \ } while (0) static void @@ -222,6 +222,9 @@ context_menu_cb(WebKitWebView __attribute__((unused)) *web_view, context_handled = TRUE; } if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE) { + if (context_handled) { + NEW_SEPARATOR_ITEM(); + } context_menu_image_cb(context_menu, body); context_handled = TRUE; } |