def get_icon_for_type(self, _type):
theme = Gtk.IconTheme.get_default()
try:
return theme.load_icon(icon_names[_type.lower()], 16, 0)
except:
try:
return theme.load_icon(Gtk.STOCK_ADD, 16, 0)
except:
return None