From a724d883b1e1cb3a1f910eec64152502494a3cee Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 29 Jul 2010 15:18:27 +0200 Subject: [PATCH] Synchronize browser and panel toolbar style --- midori/midori-browser.c | 6 ++++++ midori/midori-panel.c | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 1ac1d40e..b38dcb11 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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 diff --git a/midori/midori-panel.c b/midori/midori-panel.c index 33618ae3..694fc87c 100644 --- a/midori/midori-panel.c +++ b/midori/midori-panel.c @@ -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); +} +