diff options
-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; } |