Skip to content

st/icon: Only load default fallback icon if an icon was set and failed to load

Commit c89d6a63 introduced a default fallback icon that would be displayed in case the main gicon or the fallback gicon wasn't set or failed to load.

This broke the use case where a StIcon is created but no main icon or fallback icon are set on purpose, for example the appindicator extension which always creates a StIcon to represent icons in menu items but the actual icons are only set if the application provides one, leaving the menu showing the default fallback ("image-missing") icon for all menu entries that don't actually have an icon provided by the application.

Fix that by only using the default fallback icon if the provided one failed to load.

Merge request reports