Ejemplo n.º 1
0
    def __init__(self, name, icon = None, filter_by_date=False):
        ItemSource.__init__(self,
                            name=name,
                            icon=icon,
                            uri="source://People/Everybody",
                            filter_by_date=filter_by_date)

        # Listen for changes in the Gaim files
        pidgin_reader.connect("reload", lambda x: self.emit("reload"))
        gaim_reader.connect("reload", lambda x: self.emit("reload"))
Ejemplo n.º 2
0
    def __init__(self, name, icon = None):
        ItemSource.__init__(self,
                            name=name,
                            icon=icon,
                            uri="source://People/Online",
                            filter_by_date=False)

        # Listen for changes in the Gaim files.  This isn't a good indicator of
        # presence changes, but it works sometimes.
        pidgin_reader.connect("reload", lambda x: self.emit("reload"))
        gaim_reader.connect("reload", lambda x: self.emit("reload"))
Ejemplo n.º 3
0
    def __init__(self):
        Topic.__init__(self,
                       _("People"),
                       uri="topic://People",
                       icon="stock_people")

        from gimmie_running import RunningChats
        self.set_running_source_factory(lambda: RunningChats())

        # Reload the sidebar when Pidgin's files change
        pidgin_reader.connect("reload", lambda x: self.emit("reload"))

        # Reload the sidebar when Gaim's files change
        gaim_reader.connect("reload", lambda x: self.emit("reload"))
Ejemplo n.º 4
0
    def __init__(self, tooltips):
        ToolMenuButton.__init__(self, gtk.Image(), _("Status"))

        self.set_tooltip(tooltips, _("Set your online status"))
        self.set_menu(AccountMenu())
    
        # Connect to dbus signals to notify us of buddy status changes
        # NOTE: When going to 'invisible' there won't be an accountStatusChanged
        #       signal (tested with an xmpp account might be different on
        #       others)
        try:
            pidgin_reader.connect("status-changed", lambda x: self._status_changed())
            self._status_changed()
        except dbus.DBusException:
            print " !!! Pidgin D-BUS interface not available.  Is Pidgin running?"
Ejemplo n.º 5
0
    def __init__(self):
        RunningItemSource.__init__(self, name="Active Conversations")

        # Listen for changes in the Gaim/Pidgin files
        gaim_reader.connect("reload", lambda x: self.emit("reload"))
        pidgin_reader.connect("reload", lambda x: self.emit("reload"))