3

I am working on a GUI. I use the gi module in Python. I want to add some icons to my GUI but I couldn't find a list of all icons with their corresponding names. Where can I find such a list? Is there a specific folder in my os where I can view them all?

2 Answers 2

7

You can set a widget to have a certain icon using the icon-name property with admitted values the ones you find inside gtk3-icon-browser (ex-gtk3-icon-viewer):

icon-name property: gtk3-icon-browser selection

Some widgets which support other properties (like label for Gtk.Button or stock for Gtk.Image, now deprecated) accept as values the ones you find inside glade menus instead.

label property: glade icon selection

2
  • 2
    gtk3-icon-browser in Ubuntu 21.04
    – DarkTrick
    Commented Aug 8, 2021 at 13:49
  • Note: gtk3-icon-browser is part of the gtk-3-examples package, so you install it using sudo apt install gtk-3-examples
    – Diederik
    Commented Mar 9, 2022 at 21:11
3

GTK icons are found in /usr/share/icons. You can retrieve them with

find /usr/share/icons -type f -name '*.png' -o -name '*.svg' -o -name '*.xpm'

Pixmap icons can be found in /usr/share/pixmaps,

find /usr/share/pixmaps -type f
1
  • 2
    Thx for your answer. I found gtk3-icon-viewer which is what I looked for.
    – SaKu
    Commented Aug 13, 2020 at 14:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .