def get_icon(name): filename = get_icon_filename(name) if not filename: return None from xpra.gtk_common.gtk_util import get_icon_from_file return get_icon_from_file(filename)
def do_set_icon_from_file(self, filename): tray_icon = get_icon_from_file(filename) self.set_icon_from_pixbuf(tray_icon)