Add an icon method to PurpleProtocolClass and port irc to it
Review Request #790 — Created July 8, 2021 and updated
This updates the pidgin_create_icon_from_protocol to check the new method first and then fall back to the existing list_icon method.
I opted for a 128x128px icon just kind of on a whim but figured higher resolution is better. We could pass a size parameter to icon function and then avoid some scaling, as the protocol could specify different resources, but then that means a new enum in libpurple that's very ui specific, but maybe that's fine.
I didn't move the svg because I removed some additional shadows that were in the original svg. If we want I can go back and do the remove but it was just easier for me at the moment.
Ran locally with an inverted icon to make sure pidgin was displaying the icon from the resource.
|Maybe it should return a GIcon (implemented as a GLoadableIcon or something), that can return multiple sizes?||QuLogic|