summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-10-16 23:21:25 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-10-16 23:21:25 +0300
commitd226b34df5514f41535819dc2cc61ef1752201ed (patch)
treee2495a2abdfe6a64b80e32a0051cd4ffd601f17b
parent1482ce23422b500a58c3022d2317c75d4b621a73 (diff)
downloadmetacity-d226b34df5514f41535819dc2cc61ef1752201ed.tar.gz
menu: avoid a deprecation warning
-rw-r--r--src/ui/menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/menu.c b/src/ui/menu.c
index 52df466d..5fdaca2c 100644
--- a/src/ui/menu.c
+++ b/src/ui/menu.c
@@ -494,11 +494,13 @@ meta_window_menu_popup (MetaWindowMenu *menu,
pt->x = root_x;
pt->y = root_y;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_menu_popup (GTK_MENU (menu->menu),
NULL, NULL,
popup_position_func, pt,
button,
timestamp);
+ G_GNUC_END_IGNORE_DEPRECATIONS
if (!gtk_widget_get_visible (menu->menu))
meta_warning ("GtkMenu failed to grab the pointer\n");