summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-icon-container.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 1b77db00..bf00743b 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -9659,6 +9659,15 @@ caja_icon_container_set_is_desktop (CajaIconContainer *container,
g_return_if_fail (CAJA_IS_ICON_CONTAINER (container));
container->details->is_desktop = is_desktop;
+
+#if GTK_CHECK_VERSION (3, 0, 0)
+ if (is_desktop) {
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (container));
+ gtk_style_context_add_class (context, "caja-desktop");
+ }
+#endif
}
void