def __init__(self, handler, main_window=None): """ constructor handler -- a gui.base.Handler.TrayIconHandler object """ NumerableTrayIcon.__init__(self, handler) gtk.StatusIcon.__init__(self) self.main_window = main_window self.menu = None self.tag = None # keeps the gobject id for the windows-hide-menu hack # message count icon self.unread_icon = None self.connect('activate', self._on_activate) self.connect('popup-menu', self._on_popup) self.set_login() gtk.StatusIcon.set_visible(self, True) self.set_tooltip("emesene")
def __init__(self, handler=None): '''constructor''' NumerableTrayIcon.__init__(self, handler) self.launcher = UnityDBusController("application://emesene.desktop")
def __init__ (self, handler=None): '''constructor''' NumerableTrayIcon.__init__(self, handler) self.launcher = UnityDBusController("application://emesene.desktop")