summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/caja-desktop-window.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c
index 7e83a4b6..743ee24f 100644
--- a/src/caja-desktop-window.c
+++ b/src/caja-desktop-window.c
@@ -52,8 +52,15 @@ caja_desktop_window_init (CajaDesktopWindow *window)
GtkAction *action;
AtkObject *accessible;
- window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, CAJA_TYPE_DESKTOP_WINDOW,
- CajaDesktopWindowDetails);
+ window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, CAJA_TYPE_DESKTOP_WINDOW,
+ CajaDesktopWindowDetails);
+
+#if GTK_CHECK_VERSION(3, 0, 0)
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (window));
+ gtk_style_context_add_class (context, "caja-desktop-window");
+#endif
gtk_window_move (GTK_WINDOW (window), 0, 0);