def prepareMenu(self, menu): TrayIcon.prepareMenu(self, menu) menu.append(self.createMenuItem(gtk.STOCK_CONNECT, self.onMenuConnect))
def __init__(self, service): TrayIcon.__init__(self, service) self.connect('size-changed', self.onSizeChanged) self.percent = 0 self.icon = IconBar(22, self.percent)