Beispiel #1
0
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)
Beispiel #2
0
 def do_set_icon_from_file(self, filename):
     tray_icon = get_icon_from_file(filename)
     self.set_icon_from_pixbuf(tray_icon)
Beispiel #3
0
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)
Beispiel #4
0
 def do_set_icon_from_file(self, filename):
     tray_icon = get_icon_from_file(filename)
     self.set_icon_from_pixbuf(tray_icon)