Don't hardcode toolbar icon style on Windows
This commit is contained in:
parent
eec5359cf5
commit
f14152fe17
1 changed files with 0 additions and 4 deletions
|
@ -6367,11 +6367,7 @@ _midori_browser_set_toolbar_style (MidoriBrowser* browser,
|
||||||
GtkSettings* gtk_settings = gtk_widget_get_settings (GTK_WIDGET (browser));
|
GtkSettings* gtk_settings = gtk_widget_get_settings (GTK_WIDGET (browser));
|
||||||
g_object_get (gtk_settings, "gtk-toolbar-icon-size", &icon_size, NULL);
|
g_object_get (gtk_settings, "gtk-toolbar-icon-size", &icon_size, NULL);
|
||||||
if (toolbar_style == MIDORI_TOOLBAR_DEFAULT && gtk_settings)
|
if (toolbar_style == MIDORI_TOOLBAR_DEFAULT && gtk_settings)
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
gtk_toolbar_style = GTK_TOOLBAR_ICONS;
|
|
||||||
#else
|
|
||||||
g_object_get (gtk_settings, "gtk-toolbar-style", >k_toolbar_style, NULL);
|
g_object_get (gtk_settings, "gtk-toolbar-style", >k_toolbar_style, NULL);
|
||||||
#endif
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (toolbar_style)
|
switch (toolbar_style)
|
||||||
|
|
Loading…
Reference in a new issue