Replacement for the deprecated Gtk.STOCK_EDIT?

PyGObject says Gtk.STOCK_EDIT ist deprecated since 3.10: https://lazka.github.io/pgi-docs/#Gtk-3.0/constants.html#Gtk.STOCK_EDIT

I tried to find a non-deprecated named icon with a pen, but couldn’t find one. The linked docs also don’t name a replacement.

Any Idea what to use now?

It depends on what you want to achieve. If you want to provide a label, then use “Edit” and localise it using your platform’s localisation API; if you want an icon, then you should avoid using icons for generic elements unless they have a very specific and shared metaphor.

See: UI Icons - GNOME Human Interface Guidelines documentation

You can use Icon Library to search for an appropriate icon, see the section “Pre-Installed System Icons” for icons similar to stock icons.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.