diff options
author | raveit65 <chat-to-me@raveit.de> | 2016-04-19 15:48:27 +0200 |
---|---|---|
committer | raveit65 <chat-to-me@raveit.de> | 2016-04-19 16:11:14 +0200 |
commit | e8ec81e2da654f5f07d94dc3f767d42f90fd12b4 (patch) | |
tree | 4917ba462187393427f3f5f94425493299c7a3b8 | |
parent | bcd3aeb9f51d31911702992df087f0d1e6f5ef38 (diff) | |
download | caja-e8ec81e2da654f5f07d94dc3f767d42f90fd12b4.tar.bz2 caja-e8ec81e2da654f5f07d94dc3f767d42f90fd12b4.tar.xz |
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.
-rw-r--r-- | src/caja-desktop-window.c | 11 |
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); |