diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-26 18:52:27 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-26 18:52:27 (EDT) |
commit | 939fd6ecc8fd0087be6eb7dc148fb30a0ab160e7 (patch) | |
tree | 3de4fdf437a7bb9362136eedf9408a8758dcf3c6 /src | |
parent | 5755453f650c25b0cb37c5b5fd0460d486928e59 (diff) | |
download | marquee-939fd6ecc8fd0087be6eb7dc148fb30a0ab160e7.zip marquee-939fd6ecc8fd0087be6eb7dc148fb30a0ab160e7.tar.gz marquee-939fd6ecc8fd0087be6eb7dc148fb30a0ab160e7.tar.bz2 |
MqTabBody: Fix context menu separator items
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-body.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tab-body.c b/src/tab-body.c index 574d4c4..ac05cae 100644 --- a/src/tab-body.c +++ b/src/tab-body.c @@ -97,6 +97,11 @@ menu_open_image_win_activate_cb(GtkAction __attribute__((unused)) *action, WEBKIT_CONTEXT_MENU_ACTION_##STOCK); \ webkit_context_menu_append(context_menu, menu_item); \ } while (0) +#define NEW_SEPARATOR_ITEM() \ + do { \ + menu_item = webkit_context_menu_item_new_separator(); \ + webkit_context_menu_append(context_menu, menu_item); \ + } while (0) static void context_menu_link_cb(WebKitContextMenu *context_menu, MqTabBody *body) @@ -132,9 +137,9 @@ context_menu_document_cb(WebKitContextMenu *context_menu, MqTabBody *body) NEW_STOCK_ITEM(GO_FORWARD); /* Forward */ NEW_STOCK_ITEM(STOP); /* Stop */ NEW_STOCK_ITEM(RELOAD); /* Reload */ - NEW_STOCK_ITEM(NO_ACTION); /* --- */ + NEW_SEPARATOR_ITEM(); /* --- */ NEW_STOCK_ITEM(SELECT_ALL); /* Select All */ - NEW_STOCK_ITEM(NO_ACTION); /* --- */ + NEW_SEPARATOR_ITEM(); /* --- */ /* View Page Source */ } |