[epiphany] web-extension: silence unfixable deprecation warnings



commit f77a35e73579e63fa34c84b669ce451bc8fd0416
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Oct 8 15:45:13 2016 -0500

    web-extension: silence unfixable deprecation warnings
    
    No clue how we'll handle this with GTK+ 4

 embed/web-extension/ephy-web-extension.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index fe1b3cc..0c8c09b 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -548,9 +548,12 @@ get_selected_bgcolor (void)
   GdkRGBA color;
   gtk_style_context_set_state (get_entry_style_context (),
                                GTK_STATE_FLAG_SELECTED);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
   gtk_style_context_get_background_color (get_entry_style_context (),
                                           GTK_STATE_FLAG_SELECTED,
                                           &color);
+#pragma GCC diagnostic pop
   return gdk_rgba_to_string (&color);
 }
 
@@ -572,9 +575,12 @@ get_bgcolor (void)
   GdkRGBA color;
   gtk_style_context_set_state (get_entry_style_context (),
                                GTK_STATE_FLAG_NORMAL);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
   gtk_style_context_get_background_color (get_entry_style_context (),
                                           GTK_STATE_FLAG_NORMAL,
                                           &color);
+#pragma GCC diagnostic pop
   return gdk_rgba_to_string (&color);
 }
 


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