diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-26 23:40:34 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-26 23:40:34 (EDT) |
commit | 5ab96c54f328fcfd17b755b70baee2e88b143eb3 (patch) | |
tree | c26926b9605fdc11d90aa183d44e1f5a4f2e50bb /src | |
parent | 0817a7c9910561dd127e89635c08f838f046d303 (diff) | |
download | marquee-5ab96c54f328fcfd17b755b70baee2e88b143eb3.zip marquee-5ab96c54f328fcfd17b755b70baee2e88b143eb3.tar.gz marquee-5ab96c54f328fcfd17b755b70baee2e88b143eb3.tar.bz2 |
MqTabBody: Better organize context menu items
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-body.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tab-body.c b/src/tab-body.c index 17f8c3a..131ce98 100644 --- a/src/tab-body.c +++ b/src/tab-body.c @@ -162,6 +162,7 @@ context_menu_link_cb(WebKitContextMenu *context_menu, MqTabBody *body) NEW_CUSTOM_ITEM(open_link, "Open Link"); NEW_CUSTOM_ITEM(open_link_tab, "Open Link in New Tab"); NEW_CUSTOM_ITEM(open_link_win, "Open Link in New Window"); + NEW_SEPARATOR_ITEM(); /* --- */ NEW_STOCK_ITEM(DOWNLOAD_LINK_TO_DISK); /* Download Linked File */ NEW_STOCK_ITEM(COPY_LINK_TO_CLIPBOARD); /* Copy Link Location */ } @@ -174,6 +175,7 @@ context_menu_image_cb(WebKitContextMenu *context_menu, MqTabBody *body) NEW_CUSTOM_ITEM(open_image, "Open Image"); NEW_CUSTOM_ITEM(open_image_tab, "Open Image in New Tab"); NEW_CUSTOM_ITEM(open_image_win, "Open Image in New Window"); + NEW_SEPARATOR_ITEM(); /* --- */ NEW_STOCK_ITEM(DOWNLOAD_IMAGE_TO_DISK); /* Save Image As */ NEW_STOCK_ITEM(COPY_IMAGE_TO_CLIPBOARD); /* Copy Image */ NEW_STOCK_ITEM(COPY_IMAGE_URL_TO_CLIPBOARD); /* Copy Image Address */ @@ -192,19 +194,21 @@ context_menu_media_cb(WebKitContextMenu *context_menu, GList *media_ctrl_items, RESTORE_ITEMS(media_toggle_items); NEW_SEPARATOR_ITEM(); /* --- */ if (is_video) { - /* Copy Video Link Location */ - NEW_STOCK_ITEM(COPY_VIDEO_LINK_TO_CLIPBOARD); NEW_CUSTOM_ITEM(open_video, "Open Video"); NEW_CUSTOM_ITEM(open_video_tab, "Open Video in New Tab"); NEW_CUSTOM_ITEM(open_video_win, "Open Video in New Window"); + NEW_SEPARATOR_ITEM(); /* --- */ NEW_STOCK_ITEM(DOWNLOAD_VIDEO_TO_DISK); /* Download Video */ + /* Copy Video Link Location */ + NEW_STOCK_ITEM(COPY_VIDEO_LINK_TO_CLIPBOARD); } else { - /* Copy Audio Link Location */ - NEW_STOCK_ITEM(COPY_AUDIO_LINK_TO_CLIPBOARD); NEW_CUSTOM_ITEM(open_audio, "Open Audio"); NEW_CUSTOM_ITEM(open_audio_tab, "Open Audio in New Tab"); NEW_CUSTOM_ITEM(open_audio_win, "Open Audio in New Window"); + NEW_SEPARATOR_ITEM(); /* --- */ NEW_STOCK_ITEM(DOWNLOAD_AUDIO_TO_DISK); /* Download Audio */ + /* Copy Audio Link Location */ + NEW_STOCK_ITEM(COPY_AUDIO_LINK_TO_CLIPBOARD); } } |