]> spindle.queued.net Git - midori/commitdiff
Use secondary toolbar style for bookmarks bar
authorChristian Dywan <christian@twotoasts.de>
Sun, 9 Oct 2011 12:48:12 +0000 (14:48 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 9 Oct 2011 12:48:12 +0000 (14:48 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/870854
midori/midori-browser.c

index 2005c9c49a013aa5ed0feb84d4f52ee8594e384b..2963faa3273a3b8a8d9490f2d858cd25653e8a93 100644 (file)
@@ -6177,6 +6177,10 @@ midori_browser_init (MidoriBrowser* browser)
 
     /* Bookmarkbar */
     browser->bookmarkbar = gtk_toolbar_new ();
+#if GTK_CHECK_VERSION (3, 0, 0)
+    gtk_style_context_add_class (
+        gtk_widget_get_style_context (browser->bookmarkbar), "secondary-toolbar");
+#endif
     gtk_widget_set_name (browser->bookmarkbar, "MidoriBookmarkbar");
     gtk_toolbar_set_icon_size (GTK_TOOLBAR (browser->bookmarkbar),
                                GTK_ICON_SIZE_MENU);