Synchronize browser and panel toolbar style
This commit is contained in:
parent
2350fc0834
commit
a724d883b1
2 changed files with 17 additions and 0 deletions
|
@ -210,6 +210,10 @@ midori_browser_settings_notify (MidoriWebSettings* web_settings,
|
||||||
GParamSpec* pspec,
|
GParamSpec* pspec,
|
||||||
MidoriBrowser* browser);
|
MidoriBrowser* browser);
|
||||||
|
|
||||||
|
void
|
||||||
|
midori_panel_set_toolbar_style (MidoriPanel* panel,
|
||||||
|
GtkToolbarStyle style);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
midori_browser_set_bookmarks (MidoriBrowser* browser,
|
midori_browser_set_bookmarks (MidoriBrowser* browser,
|
||||||
KatzeArray* bookmarks);
|
KatzeArray* bookmarks);
|
||||||
|
@ -6026,6 +6030,8 @@ _midori_browser_set_toolbar_style (MidoriBrowser* browser,
|
||||||
gtk_toolbar_set_style (GTK_TOOLBAR (browser->navigationbar),
|
gtk_toolbar_set_style (GTK_TOOLBAR (browser->navigationbar),
|
||||||
gtk_toolbar_style);
|
gtk_toolbar_style);
|
||||||
gtk_toolbar_set_icon_size (GTK_TOOLBAR (browser->navigationbar), icon_size);
|
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
|
static gboolean
|
||||||
|
|
|
@ -1150,3 +1150,14 @@ midori_panel_append_widget (MidoriPanel* panel,
|
||||||
G_CALLBACK (midori_panel_widget_destroy_cb), viewable);
|
G_CALLBACK (midori_panel_widget_destroy_cb), viewable);
|
||||||
return midori_panel_append_page (panel, MIDORI_VIEWABLE (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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue