This depends on the icon theme that is currently applied.
On systems that conform to the Freedesktop.org Cross-Desktop Group (XDG) specification (Unix-like systems) they can be in a theme's subfolder that is located in any of the following paths (order is by precedence):
Be aware that if there is no icon found that uses that name and size, the lookup_icon method will simply return an IconPaintable that renders the "missing icon".
Since you are aware that stock icons are deprecated at this point, I recommend that you port your code to use newer techniques since you are likely to get weird results on newer systems. Someone would have to correct me, but I don't think stock icons are even included as a fallback in GNOME anymore.
This depends on the icon theme that is currently applied.
On systems that conform to the Freedesktop.org Cross-Desktop Group (XDG) specification (Unix-like systems) they can be in a theme's subfolder that is located in any of the following paths (order is by precedence):
$HOME/.icons$XDG_DATA_DIRS/icons/usr/share/pixmapsWhere
$HOMEis the user's home directory, and$XDG_DATA_DIRSis any path where data files are stored.If you'd like to find this information out programmatically, you can do something like this:
Be aware that if there is no icon found that uses that name and size, the
lookup_iconmethod will simply return anIconPaintablethat renders the "missing icon".Since you are aware that stock icons are deprecated at this point, I recommend that you port your code to use newer techniques since you are likely to get weird results on newer systems. Someone would have to correct me, but I don't think stock icons are even included as a fallback in GNOME anymore.