Synchronize browser and panel toolbar style

This commit is contained in:
Christian Dywan 2010-07-29 15:18:27 +02:00
parent 2350fc0834
commit a724d883b1
2 changed files with 17 additions and 0 deletions

View file

@ -210,6 +210,10 @@ midori_browser_settings_notify (MidoriWebSettings* web_settings,
GParamSpec* pspec,
MidoriBrowser* browser);
void
midori_panel_set_toolbar_style (MidoriPanel* panel,
GtkToolbarStyle style);
static void
midori_browser_set_bookmarks (MidoriBrowser* browser,
KatzeArray* bookmarks);
@ -6026,6 +6030,8 @@ _midori_browser_set_toolbar_style (MidoriBrowser* browser,
gtk_toolbar_set_style (GTK_TOOLBAR (browser->navigationbar),
gtk_toolbar_style);
gtk_toolbar_set_icon_size (GTK_TOOLBAR (browser->navigationbar), icon_size);
midori_panel_set_toolbar_style (MIDORI_PANEL (browser->panel),
gtk_toolbar_style);
}
static gboolean

View file

@ -1150,3 +1150,14 @@ midori_panel_append_widget (MidoriPanel* panel,
G_CALLBACK (midori_panel_widget_destroy_cb), viewable);
return midori_panel_append_page (panel, MIDORI_VIEWABLE (viewable));
}
/* Private function, used by MidoriBrowser */
void
midori_panel_set_toolbar_style (MidoriPanel* panel,
GtkToolbarStyle style)
{
g_return_if_fail (MIDORI_IS_PANEL (panel));
gtk_toolbar_set_style (GTK_TOOLBAR (panel->toolbar), style);
}