GResource icons: is index.theme needed?

Hi,

When putting icons in a GResource, is it recommended to add an index.theme too?

I had a look at a few apps, they don’t use an index, is it a good practice or can the glib reliably deal without one?

No, it’s not necessary.

GLib has nothing to do with icon themes: GTK is responsible for loading the images.

The index.theme file is meant to be used to describe the icon theme structure on disk, to allow for non-standard paths; icon assets inside GResources are already following the theme structure, so they don’t need an index file.

1 Like

Perfect, thank you very much @ebassi !

Oh, yes, of course… :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.