]> spindle.queued.net Git - midori/commitdiff
Synchronize browser and panel toolbar style
authorChristian Dywan <christian@twotoasts.de>
Thu, 29 Jul 2010 13:18:27 +0000 (15:18 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 30 Jul 2010 20:09:02 +0000 (22:09 +0200)
midori/midori-browser.c
midori/midori-panel.c

index 1ac1d40e790748692ed7cd4a58ce372c87c81579..b38dcb110ef335bbb006db06bfe37c896a5c8622 100644 (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
index 33618ae36b5c49b34ce389f99b4b5044ace6dd37..694fc87cf1e87a07ed964f52796b4d6eff16b78b 100644 (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);
+}
+