{
#if HAVE_HILDON
GtkToolbarStyle gtk_toolbar_style = GTK_TOOLBAR_ICONS;
+ GtkIconSize icon_size = GTK_ICON_SIZE_LARGE_TOOLBAR;
#else
GtkToolbarStyle gtk_toolbar_style;
+ GtkIconSize icon_size;
GtkSettings* gtk_settings = gtk_widget_get_settings (GTK_WIDGET (browser));
+ g_object_get (gtk_settings, "gtk-toolbar-icon-size", &icon_size, NULL);
if (toolbar_style == MIDORI_TOOLBAR_DEFAULT && gtk_settings)
#ifdef G_OS_WIN32
gtk_toolbar_style = GTK_TOOLBAR_ICONS;
{
switch (toolbar_style)
{
+ case MIDORI_TOOLBAR_SMALL_ICONS:
+ icon_size = GTK_ICON_SIZE_SMALL_TOOLBAR;
case MIDORI_TOOLBAR_ICONS:
gtk_toolbar_style = GTK_TOOLBAR_ICONS;
break;
#endif
gtk_toolbar_set_style (GTK_TOOLBAR (browser->navigationbar),
gtk_toolbar_style);
+ gtk_toolbar_set_icon_size (GTK_TOOLBAR (browser->navigationbar), icon_size);
}
static gboolean
static const GEnumValue values[] = {
{ MIDORI_TOOLBAR_DEFAULT, "MIDORI_TOOLBAR_DEFAULT", N_("Default") },
{ MIDORI_TOOLBAR_ICONS, "MIDORI_TOOLBAR_ICONS", N_("Icons") },
+ { MIDORI_TOOLBAR_SMALL_ICONS, "MIDORI_TOOLBAR_SMALL_ICONS", N_("Small icons") },
{ MIDORI_TOOLBAR_TEXT, "MIDORI_TOOLBAR_TEXT", N_("Text") },
{ MIDORI_TOOLBAR_BOTH, "MIDORI_TOOLBAR_BOTH", N_("Icons and text") },
{ MIDORI_TOOLBAR_BOTH_HORIZ, "MIDORI_TOOLBAR_BOTH_HORIZ", N_("Text beside icons") },
{
MIDORI_TOOLBAR_DEFAULT,
MIDORI_TOOLBAR_ICONS,
+ MIDORI_TOOLBAR_SMALL_ICONS,
MIDORI_TOOLBAR_TEXT,
MIDORI_TOOLBAR_BOTH,
MIDORI_TOOLBAR_BOTH_HORIZ