Where GTK finds icon names to use with gtk_image_new_from_icon_name()?

后端 未结 3 1143
时光取名叫无心
时光取名叫无心 2021-02-07 07:28

GTK can construct images by name of the \"icon from current icon theme\". For example:

#!/usr/bin/env python
import gtk; wnd=gtk.Window(); img=gtk.Image();
img.s         


        
3条回答
  •  情深已故
    2021-02-07 08:18

    Better late than never !

    Here are two little Python scripts showing all existing icons sorted by their name:

    • http://dl.0xdeadc0de.fr/misc/gtkiconview_freedesktop.py for those in the Icon Naming Specification.
    • http://dl.0xdeadc0de.fr/misc/gtkiconview_local.py for those included in packages such as 'gnome-icon-theme-symbolic'.

提交回复
热议问题