Browse Source
Use PyXDG.IconTheme to lookup the application icons instead of pyGTK; this has some advantages: - we are already using PyXDG, so it does not add new requirements - the icon lookup follows the icon theme specs a little bit closer - the icon lookup does not require an X/graphical session - there is no implicit 'adwaita' or 'gnome' icon theme used in lookup there are also few disadvantages: - there is no concept of "default icon theme", so "hicolor" is hardcoded for now; note that, when using pyGTK, the "default icon theme" was the GTK one, not any other configured in other ways - it seems the lookup logic for hicolor returns the smallest icon available in case the current size is not available: for example a 16px PNG is returned instead of a 48px for a requested and not found 64px sizepull/24/head

1 changed files with 18 additions and 29 deletions
Loading…
Reference in new issue