Esempio n. 1
0
    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")
Esempio n. 2
0
 def __init__(self, handler=None):
     '''constructor'''
     NumerableTrayIcon.__init__(self, handler)
     self.launcher = UnityDBusController("application://emesene.desktop")
Esempio n. 3
0
 def __init__ (self, handler=None):
     '''constructor'''
     NumerableTrayIcon.__init__(self, handler)
     self.launcher = UnityDBusController("application://emesene.desktop")