diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-01 16:36:54 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-01 16:36:54 (EDT) |
commit | ed4ea5bfd8edc9edc2271bc7ae6fb5e527adb0ce (patch) | |
tree | 37d3225131b74265045a3c3cbf0baa7a469cba18 /src/web-view-schemes | |
parent | 11abba7bcb223279706a933023ceedd64a5aa1f6 (diff) | |
download | marquee-ed4ea5bfd8edc9edc2271bc7ae6fb5e527adb0ce.zip marquee-ed4ea5bfd8edc9edc2271bc7ae6fb5e527adb0ce.tar.gz marquee-ed4ea5bfd8edc9edc2271bc7ae6fb5e527adb0ce.tar.bz2 |
src/web-view-schemes/view-source.c: Undefine ITEM_DECLS and NEW_CUSTOM_ITEM
No custom context menu items are created for this scheme.
Fixes:
CC src/web-view-schemes/marquee-view-source.o
src/web-view-schemes/view-source.c: At top level:
src/web-view-schemes/view-source.c:112:0: warning: macro "NEW_CUSTOM_ITEM" is not used [-Wunused-macros]
#define NEW_CUSTOM_ITEM(NAME, LABEL) \
^
src/web-view-schemes/view-source.c:107:0: warning: macro "ITEM_DECLS" is not used [-Wunused-macros]
#define ITEM_DECLS \
^
Diffstat (limited to 'src/web-view-schemes')
-rw-r--r-- | src/web-view-schemes/view-source.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c index 90b0b85..4ff2b92 100644 --- a/src/web-view-schemes/view-source.c +++ b/src/web-view-schemes/view-source.c @@ -104,22 +104,8 @@ display_uri(MqWebView G_GNUC_UNUSED *web_view, MqWebViewScheme *scheme, #define WKCMA(ACTION) \ WEBKIT_CONTEXT_MENU_ACTION_##ACTION -#define ITEM_DECLS \ - GtkAction *action; \ - WebKitContextMenuItem *menu_item; #define ITEM_DECLS_NO_CUSTOM \ WebKitContextMenuItem *menu_item; -#define NEW_CUSTOM_ITEM(NAME, LABEL) \ - G_STMT_START { \ - /* Don't blame me; blame WebKitGTK+ for using GtkAction. */ \ - G_GNUC_BEGIN_IGNORE_DEPRECATIONS \ - action = gtk_action_new(#NAME, (LABEL), NULL, NULL); \ - G_GNUC_END_IGNORE_DEPRECATIONS \ - g_signal_connect(action, "activate", \ - G_CALLBACK(menu_##NAME##_activate_cb), web_view); \ - menu_item = webkit_context_menu_item_new(action); \ - webkit_context_menu_append(context_menu, menu_item); \ - } G_STMT_END #define NEW_STOCK_ITEM(STOCK) \ G_STMT_START { \ menu_item = webkit_context_menu_item_new_from_stock_action( \ |