@techee commented on this pull request.
gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &x, &dummy);
+ } + return gtk_icon_theme_load_icon(icon_theme, icon_name, x, 0, NULL); +} + + +static GdkPixbuf *get_icon_pixbuf(gint icon) +{ + if (!geany_icons[_ICON_CLASS].pixbuf) + { + guint i; + for (i = 0; i < G_N_ELEMENTS(geany_icons); i++) + geany_icons[i].pixbuf = get_tag_icon(geany_icons[i].icon_name); + } + + if (icon < _N_ICONS)
I'd prefer if https://github.com/geany/geany/pull/3849/commits/1931fcc2f4d5de46871c85a7829... from https://github.com/geany/geany/pull/3849 could be merged and used here. While the icons can be accessed this way, if someone reorganizes something in Geany, it will break. So better have some proper API for accessing these icons.