Where are stockId gtk image stored ?
I use gtkmm 3.24.5.
In gtkmm I display them as :
// Note: This code is deprecated Gtk::Image image(Gtk:Stock::Yes.id, ICON_SIZE_BUTTON);
I want to kown where image is stored on disk.
Where are stockId gtk image stored ?
I use gtkmm 3.24.5.
In gtkmm I display them as :
// Note: This code is deprecated Gtk::Image image(Gtk:Stock::Yes.id, ICON_SIZE_BUTTON);
I want to kown where image is stored on disk.
Copyright © 2021 Jogjafile Inc.
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.