Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stock items are deprecated #78

Open
carrotIndustries opened this issue Feb 14, 2016 · 7 comments
Open

Stock items are deprecated #78

carrotIndustries opened this issue Feb 14, 2016 · 7 comments

Comments

@carrotIndustries
Copy link

The file chooser example uses stock items for the open / cancel button, although these are deprecated.

@sebp
Copy link
Owner

sebp commented 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
Copy link

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
Copy link
Contributor

@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
Copy link

http://python-gtk-3-tutorial.readthedocs.io/en/latest/iconview.html
The example calls Gtk.IconTheme.get_default().load_icon using edit-cut, edit-paste, edit-copy are 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
Copy link
Contributor

TingPing commented Mar 13, 2017

gtk3-icon-browser is helpful.

Are named icons deprecated?

No.

@vanillajonathan
Copy link

vanillajonathan commented 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
Copy link
Contributor

I think recommending gtk3-icon-browser is the only option. What icons look like depend upon your theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants