def make_tray_widget(self): from xpra.platform.xposix.gui import get_native_system_tray_classes classes = get_native_system_tray_classes() try: from xpra.client.gtk_base.statusicon_tray import GTKStatusIconTray classes.append(GTKStatusIconTray) except: traylog("no GTKStatusIconTray", exc_info=True) traylog("tray classes: %s", classes) if not classes: traylog.error("Error: no system tray implementation available") return None errs = [] for c in classes: try: w = c(self, XPRA_APP_ID, self.tray, "Xpra Shadow Server", None, None, self.tray_click_callback, mouseover_cb=None, exit_cb=self.tray_exit_callback) return w except Exception as e: errs.append((c, e)) traylog.error("Error: all system tray implementations have failed") for c, e in errs: traylog.error(" %s: %s", c, e) return None
def make_tray_widget(self): from xpra.platform.xposix.gui import get_native_system_tray_classes classes = get_native_system_tray_classes() try: from xpra.client.gtk_base.statusicon_tray import GTKStatusIconTray classes.append(GTKStatusIconTray) except: pass traylog("tray classes: %s", classes) if not classes: traylog.error("Error: no system tray implementation available") return None errs = [] for c in classes: try: w = c(self, self.tray, "Xpra Shadow Server", None, None, self.tray_click_callback, mouseover_cb=None, exit_cb=self.tray_exit_callback) return w except Exception as e: errs.append((c, e)) traylog.error("Error: all system tray implementations have failed") for c, e in errs: traylog.error(" %s: %s", c, e) return None