diff options
| author | Alexei Sorokin <[email protected]> | 2017-03-12 15:07:16 +0300 | 
|---|---|---|
| committer | raveit65 <[email protected]> | 2017-03-13 10:28:08 +0100 | 
| commit | 4c10ec0fdac58498c8c9616b940ff78990c86c90 (patch) | |
| tree | 7cd24f21ef9f150fd7a565e255e3ea2e7dafb8c8 /src | |
| parent | 438682bef1a8fea49b4c6972350bede1bfad69d0 (diff) | |
| download | caja-4c10ec0fdac58498c8c9616b940ff78990c86c90.tar.bz2 caja-4c10ec0fdac58498c8c9616b940ff78990c86c90.tar.xz | |
eel: Avoid deprecated gdk_window_set_background functions
Fixes partially #506, fixes compiz-reloaded/compiz#40.
Diffstat (limited to 'src')
| -rw-r--r-- | src/caja-desktop-window.c | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index 23d6809a..0d2a9f7f 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -30,6 +30,7 @@  #include <X11/Xatom.h>  #include <gdk/gdkx.h>  #include <gtk/gtk.h> +#include <eel/eel-background.h>  #include <eel/eel-vfs-extensions.h>  #include <libcaja-private/caja-file-utilities.h>  #include <libcaja-private/caja-icon-names.h> @@ -249,6 +250,17 @@ realize (GtkWidget *widget)                            G_CALLBACK (caja_desktop_window_screen_size_changed), window);  } +#if GTK_CHECK_VERSION (3, 22, 0) +static gboolean +draw (GtkWidget *widget, +      cairo_t   *cr) +{ +    eel_background_draw (widget, cr); + +    return GTK_WIDGET_CLASS (caja_desktop_window_parent_class)->draw (widget, cr); +} +#endif +  static char *  real_get_title (CajaWindow *window)  { @@ -271,6 +283,9 @@ caja_desktop_window_class_init (CajaDesktopWindowClass *klass)      wclass->realize = realize;      wclass->unrealize = unrealize;      wclass->map = map; +#if GTK_CHECK_VERSION (3, 22, 0) +    wclass->draw = draw; +#endif      nclass->window_type = CAJA_WINDOW_DESKTOP;      nclass->get_title = real_get_title;      nclass->get_icon = real_get_icon; | 
