[metacity/gnome-3-22] menu: avoid deprecation warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/gnome-3-22] menu: avoid deprecation warnings
- Date: Mon, 24 Oct 2016 16:05:35 +0000 (UTC)
commit de8bb6198101b82868d0e84e86c2c451a6d5a145
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Oct 24 19:00:08 2016 +0300
menu: avoid deprecation warnings
src/ui/menu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/menu.c b/src/ui/menu.c
index 5fdaca2..2f3cdf2 100644
--- a/src/ui/menu.c
+++ b/src/ui/menu.c
@@ -121,8 +121,10 @@ popup_position_func (GtkMenu *menu,
*x = MAX (0, *x - req.width);
/* Ensure onscreen */
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
*x = CLAMP (*x, 0, MAX (0, gdk_screen_width () - req.width));
*y = CLAMP (*y, 0, MAX (0, gdk_screen_height () - req.height));
+ G_GNUC_END_IGNORE_DEPRECATIONS
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]