From e8ec81e2da654f5f07d94dc3f767d42f90fd12b4 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 19 Apr 2016 15:48:27 +0200 Subject: GTK+3: add style class caja-desktop-window at top level The existing style class .caja-desktop does not match every widget which you see at the screen. Ie. the widget scrolledwindow, which is above the existing class in hierarchy. --- src/caja-desktop-window.c | 11 +++++++++-- 1 file 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); -- cgit v1.2.1