diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-body.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tab-body.c b/src/tab-body.c index 843fe5b..2646093 100644 --- a/src/tab-body.c +++ b/src/tab-body.c @@ -151,10 +151,9 @@ menu_open_audio_win_activate_cb(GtkAction __attribute__((unused)) *action, #define NEW_CUSTOM_ITEM(NAME, LABEL) \ do { \ /* Don't blame me; blame WebKitGTK+ for using GtkAction. */ \ - _Pragma("GCC diagnostic push") \ - _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")\ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS \ action = gtk_action_new(#NAME, (LABEL), NULL, NULL); \ - _Pragma("GCC diagnostic pop") \ + G_GNUC_END_IGNORE_DEPRECATIONS \ g_signal_connect(action, "activate", \ G_CALLBACK(menu_##NAME##_activate_cb), body); \ menu_item = webkit_context_menu_item_new(action); \ |