shell-tray-manager: Silence gdk_window_set_background_pattern warning

Apparently we can't get rid of it without breaking backward compatibility.
So let's stick to how GTK handles it and just silence the warning.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/423
This commit is contained in:
Robert Mader 2019-03-04 16:50:12 +01:00 committed by Florian Müllner
parent 1b3c26364b
commit 5a897407d9

View File

@ -239,8 +239,10 @@ shell_tray_manager_child_on_realize (GtkWidget *widget,
bg_pattern = cairo_pattern_create_rgb (color.red / 255.,
color.green / 255.,
color.blue / 255.);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gdk_window_set_background_pattern (gtk_widget_get_window (widget),
bg_pattern);
G_GNUC_END_IGNORE_DEPRECATIONS
cairo_pattern_destroy (bg_pattern);
}