summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Aebi <[email protected]>2013-11-03 14:41:48 +0100
committerElias Aebi <[email protected]>2013-11-03 14:41:48 +0100
commit10d8824bc690ebb65d85569680b7e3e083066d11 (patch)
treef092482b37f35f04f3feb4c2e379db3690b5d437
parent26e32ccc5efa5885227fa9e5e9b7bfb22e32b62d (diff)
downloadcaja-10d8824bc690ebb65d85569680b7e3e083066d11.tar.bz2
caja-10d8824bc690ebb65d85569680b7e3e083066d11.tar.xz
add the primary-toolbar style class to the primary toolbar (only for the GTK3 version)
-rw-r--r--src/caja-navigation-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/caja-navigation-window.c b/src/caja-navigation-window.c
index 4b03a865..7eed3c91 100644
--- a/src/caja-navigation-window.c
+++ b/src/caja-navigation-window.c
@@ -185,6 +185,9 @@ caja_navigation_window_init (CajaNavigationWindow *window)
ui_manager = caja_window_get_ui_manager (CAJA_WINDOW (window));
toolbar = gtk_ui_manager_get_widget (ui_manager, "/Toolbar");
+#if GTK_CHECK_VERSION(3, 0, 0)
+ gtk_style_context_add_class (gtk_widget_get_style_context (toolbar), GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+#endif
window->details->toolbar = toolbar;
gtk_table_attach (GTK_TABLE (CAJA_WINDOW (window)->details->table),
toolbar,