diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-02-01 20:24:39 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-02-01 20:24:39 +0100 |
commit | 334e89244987fcfe89ca765f3986fa85254395eb (patch) | |
tree | cfbd8afb7590e7d4d77d80b0a3d9ccd72c65d4c3 /src/caja-navigation-window.c | |
parent | 40d196aadb946363fddbf4dfe44477168f78e4a6 (diff) | |
download | caja-334e89244987fcfe89ca765f3986fa85254395eb.tar.bz2 caja-334e89244987fcfe89ca765f3986fa85254395eb.tar.xz |
Gtk3 navigation-window: add 'caja-navigation-window' style class at top level
This style selector can be use by themes to select the caja navigation window.
Needed for gtk+-3.20
Diffstat (limited to 'src/caja-navigation-window.c')
-rw-r--r-- | src/caja-navigation-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/caja-navigation-window.c b/src/caja-navigation-window.c index c6621afb..bd79d774 100644 --- a/src/caja-navigation-window.c +++ b/src/caja-navigation-window.c @@ -138,6 +138,13 @@ caja_navigation_window_init (CajaNavigationWindow *window) window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, CAJA_TYPE_NAVIGATION_WINDOW, CajaNavigationWindowDetails); +#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-navigation-window"); +#endif + pane = caja_navigation_window_pane_new (win); win->details->panes = g_list_prepend (win->details->panes, pane); |