Skip to content

Commit

Permalink
audgui: Load toolbar icons at the correct size.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlindgren90 committed Jan 21, 2018
1 parent 2e6546b commit 6b85ba2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libaudgui/init.cc
Expand Up @@ -260,7 +260,11 @@ static void load_fallback_icons ()
for (const char * icon : all_icons)
load_fallback_icon (icon, menu_size);

int toolbar_size = get_icon_size (GTK_ICON_SIZE_LARGE_TOOLBAR);
GtkIconSize icon_size;
GtkSettings * settings = gtk_settings_get_default ();
g_object_get (settings, "gtk-toolbar-icon-size", & icon_size, NULL);

int toolbar_size = get_icon_size (icon_size);
for (const char * icon : toolbar_icons)
load_fallback_icon (icon, toolbar_size);

Expand Down

0 comments on commit 6b85ba2

Please sign in to comment.