[metacity/gnome-3-22] tabpopup: avoid deprecation warnings



commit c2db9eb602dca7c0777685b2cb2e10d59f392cbb
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Oct 24 19:01:45 2016 +0300

    tabpopup: avoid deprecation warnings

 src/ui/tabpopup.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index a6cd154..4904343 100644
--- a/src/ui/tabpopup.c
+++ b/src/ui/tabpopup.c
@@ -225,8 +225,10 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
       gtk_widget_set_app_paintable (popup->outline_window, TRUE);
       gtk_widget_realize (popup->outline_window);
 
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       gdk_window_set_background_rgba (gtk_widget_get_window (popup->outline_window),
                                       &black);
+      G_GNUC_END_IGNORE_DEPRECATIONS
 
       g_signal_connect (G_OBJECT (popup->outline_window), "draw",
                         G_CALLBACK (outline_window_draw), popup);
@@ -251,7 +253,10 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
   popup->current_selected_entry = NULL;
   popup->outline = outline;
 
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   screen_width = gdk_screen_get_width (screen);
+  G_GNUC_END_IGNORE_DEPRECATIONS
+
   for (i = 0; i < entry_count; ++i)
     {
       TabEntry* new_entry = tab_entry_new (&entries[i], screen_width, outline);


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