Commit eebc393f authored by Daniel Brötzmann's avatar Daniel Brötzmann

Don't fail hard if we cannot get icon

parent 1bc90e22
......@@ -222,6 +222,9 @@ def load_icon(icon_name, widget=None, size=16, pixbuf=False,
iconinfo = _icon_theme.lookup_icon_for_scale(
icon_name, size, scale, flags)
if iconinfo is None:'No icon found for %s', icon_name)
if pixbuf:
return iconinfo.load_icon()
return iconinfo.load_surface(None)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment