Use secondary toolbar style for bookmarks bar

Fixes: https://bugs.launchpad.net/midori/+bug/870854
This commit is contained in:
Christian Dywan 2011-10-09 14:48:12 +02:00
parent b378554df2
commit ac272d2f48

View file

@ -6177,6 +6177,10 @@ midori_browser_init (MidoriBrowser* browser)
/* Bookmarkbar */ /* Bookmarkbar */
browser->bookmarkbar = gtk_toolbar_new (); 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_widget_set_name (browser->bookmarkbar, "MidoriBookmarkbar");
gtk_toolbar_set_icon_size (GTK_TOOLBAR (browser->bookmarkbar), gtk_toolbar_set_icon_size (GTK_TOOLBAR (browser->bookmarkbar),
GTK_ICON_SIZE_MENU); GTK_ICON_SIZE_MENU);