You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Correct, stock icons are deprecated, but they are usually not displayed (as you can see in the screenshots). The advantage is that their text is automatically translated into the user's locale, which otherwise has to be done explicitly, i.e., manual use of gettext.
Stock items are used in multiple examples: filechooserdialog_example.py, dialog_example.py and textview_example.py
@vanillajonathan Depends on the usage, if in a menu probably just don't have an icon but you can pack a box manually, If in a toolbar/header yo use named icons.
Where can I find a list of valid icon names that I can use?
It would be nice if I could see the names along with an image so I can see how the icon looks like.
Are named icons deprecated?
Activity
sebp commentedon Mar 3, 2016
Correct, stock icons are deprecated, but they are usually not displayed (as you can see in the screenshots). The advantage is that their text is automatically translated into the user's locale, which otherwise has to be done explicitly, i.e., manual use of gettext.
Stock items are used in multiple examples: filechooserdialog_example.py, dialog_example.py and textview_example.py
vanillajonathan commentedon Mar 13, 2017
So what is the recommended way for dealing with icons?
Lets say I want Cut, copy, and paste or Bold, italic, and underline. Or maybe a settings icon?
TingPing commentedon Mar 13, 2017
@vanillajonathan Depends on the usage, if in a menu probably just don't have an icon but you can pack a box manually, If in a toolbar/header yo use named icons.
vanillajonathan commentedon Mar 13, 2017
http://python-gtk-3-tutorial.readthedocs.io/en/latest/iconview.html
The example calls
Gtk.IconTheme.get_default().load_iconusingedit-cut,edit-paste,edit-copyare these valid names or deprecated?Where can I find a list of valid icon names that I can use?
It would be nice if I could see the names along with an image so I can see how the icon looks like.
Are named icons deprecated?
TingPing commentedon Mar 13, 2017
gtk3-icon-browseris helpful.No.
vanillajonathan commentedon Mar 13, 2017
Thanks! :)
I would like to request a online web reference of all named icons.
Something like:
https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
But with the default set of GTK icons so you easier get a visual overview of what is available.
TingPing commentedon Mar 13, 2017
I think recommending
gtk3-icon-browseris the only option. What icons look like depend upon your theme.