[epiphany] embed-prefs: Ignore recent GTK+ deprecations



commit e8cb4f6ef64f5574dcb9c5767168a7584bbda3b7
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Oct 25 09:31:00 2016 -0500

    embed-prefs: Ignore recent GTK+ deprecations

 embed/ephy-embed-prefs.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c
index 2144bea..7c6f217 100644
--- a/embed/ephy-embed-prefs.c
+++ b/embed/ephy-embed-prefs.c
@@ -216,8 +216,11 @@ get_screen_dpi (GdkScreen *screen)
   if (dpi != -1)
     return dpi;
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
   dp = hypot (gdk_screen_get_width (screen), gdk_screen_get_height (screen));
   di = hypot (gdk_screen_get_width_mm (screen), gdk_screen_get_height_mm (screen)) / 25.4;
+#pragma GCC diagnostic pop
 
   return dp / di;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]