From c2db9eb602dca7c0777685b2cb2e10d59f392cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Mon, 24 Oct 2016 19:01:45 +0300 Subject: tabpopup: avoid deprecation warnings --- src/ui/tabpopup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c index a6cd1541..49043433 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); -- cgit v1.2.1