From 3fd59d25d213f53761691aa81095623fe5895e52 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Fri, 29 Jul 2016 17:03:48 -0400 Subject: GTK3.21:fix desktop redraw (fm-desktop-icon-view.c) --- src/file-manager/fm-desktop-icon-view.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c index 0a67ab87..7214926d 100644 --- a/src/file-manager/fm-desktop-icon-view.c +++ b/src/file-manager/fm-desktop-icon-view.c @@ -38,7 +38,9 @@ #include #include #include +#if !GTK_CHECK_VERSION(3, 21, 0) #include +#endif #include #include #include @@ -473,6 +475,17 @@ realized_callback (GtkWidget *widget, FMDesktopIconView *desktop_icon_view) gdk_window_add_filter (root_window, desktop_icon_view_property_filter, desktop_icon_view); + + /*Set up a fallback background style class for the noncompositing case */ +#if GTK_CHECK_VERSION(3, 21, 0) + gboolean + composited = gtk_widget_is_composited (GTK_WIDGET(desktop_icon_view)); + if (!composited){ + GtkStyleContext *context; + context = gtk_widget_get_style_context (GTK_WIDGET(desktop_icon_view)); + gtk_style_context_add_class(context,"caja-fallback-desktop-background"); + } +#endif } static CajaZoomLevel -- cgit v1.2.1