[gnome-shell] shell-tray-manager: Silence gdk_window_set_background_pattern warning



commit 5a897407d91c2a518aaeb3c493dee7baf7d24acf
Author: Robert Mader <robert mader posteo de>
Date:   Mon Mar 4 16:50:12 2019 +0100

    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

 src/shell-tray-manager.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/shell-tray-manager.c b/src/shell-tray-manager.c
index 3311deb40..6503cc3c4 100644
--- a/src/shell-tray-manager.c
+++ b/src/shell-tray-manager.c
@@ -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);
     }


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