summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-10-24 19:01:45 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-10-24 19:01:45 +0300
commitc2db9eb602dca7c0777685b2cb2e10d59f392cbb (patch)
tree1e5a4d74efcbccf0a989ee9b8c6770c6bd279674
parentde8bb6198101b82868d0e84e86c2c451a6d5a145 (diff)
downloadmetacity-c2db9eb602dca7c0777685b2cb2e10d59f392cbb.tar.gz
tabpopup: avoid deprecation warnings
-rw-r--r--src/ui/tabpopup.c5
1 files changed, 5 insertions, 0 deletions
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);