summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-07 15:25:01 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-07 15:29:18 (EDT)
commit961ae14eda6918cc10f12c1e82b2109b5de377b8 (patch)
tree34815262bb2014bd488646ec7adde7f4c8688b80 /src
parent27d1910dc994cc7c2a08125bf05b09a8c909ee55 (diff)
downloadmarquee-961ae14eda6918cc10f12c1e82b2109b5de377b8.zip
marquee-961ae14eda6918cc10f12c1e82b2109b5de377b8.tar.gz
marquee-961ae14eda6918cc10f12c1e82b2109b5de377b8.tar.bz2
MqTabBody: Use GLib macros instead of _Pragma()s
G_GNUC_BEGIN_IGNORE_DEPRECATIONS and G_GNUC_END_IGNORE_DEPRECATIONS expand to other pragmas for other compilers.
Diffstat (limited to 'src')
-rw-r--r--src/tab-body.c5
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); \