def initialize(self): bus = dbus.SessionBus() dbus_signal_connect_weakly(bus, "NameOwnerChanged", self._name_owner_changed, dbus_interface="org.freedesktop.DBus", arg0=_BUS_NAME)
def initialize(self): session_bus = dbus.Bus() for signal in ('Created', 'Updated', 'Deleted'): dbus_signal_connect_weakly(session_bus, signal, self._signal_update, dbus_interface=DBUS_GWIBBER_ACCOUNTS[0])
def initialize(self): session_bus = dbus.Bus() for signal in ('Created', 'Updated', 'Deleted'): dbus_signal_connect_weakly(session_bus, signal, self._signal_update, dbus_interface=DBUS_GWIBBER_STREAMS[0]) _gwibber_refresh()
def _setup_monitor(self): dbus_signal_connect_weakly(dbus.Bus(), 'NameOwnerChanged', self._signal_update, dbus_interface='org.freedesktop.DBus') dbus_signal_connect_weakly( dbus.Bus(), 'PropertiesChanged', self._properties_changed, dbus_interface='org.freedesktop.DBus.Properties')
def _install_dbus_signal(self): '''Add signals to pidgin when buddy goes offline or online to update the list''' try: session_bus = dbus.Bus() except dbus.DBusException: return dbus_signal_connect_weakly(session_bus, "SigningOff", self._signing_off, dbus_interface=IFACE_NAME) dbus_signal_connect_weakly(session_bus, "BuddySignedOn", self._buddy_signed_on, dbus_interface=IFACE_NAME) dbus_signal_connect_weakly(session_bus, "BuddyStatusChanged", self._buddy_status_changed, dbus_interface=IFACE_NAME) dbus_signal_connect_weakly(session_bus, "BuddySignedOff", self._buddy_signed_off, dbus_interface=IFACE_NAME)
def initialize(self): ToplevelGroupingSource.initialize(self) eds_cache = _get_calendar_dirs(EDS_CAL_PATH, EDS_CAL_WEB_PATH) if eds_cache: #path = list(self.get_path()) self.monitor_token = self.monitor_directories(*eds_cache) bus = dbus.SessionBus() dbus_signal_connect_weakly( bus, "objects_modified", self._on_events_updated, dbus_interface="org.gnome.evolution.dataserver.CalendarView")
def initialize(self): ToplevelGroupingSource.initialize(self) # listen to d-bus signals for updates signals = [ "ContactAbsence", "ContactPresence", "ContactStatus", "AccountPresence", "Roster", "RosterInfo", ] session_bus = dbus.Bus() for signal in signals: dbus_signal_connect_weakly(session_bus, signal, self._signal_update, dbus_interface=_IFACE_NAME)
def initialize(self): """Set up filesystem monitors to catch changes""" # We monitor all directories that exist of a couple of candidates dirs = [] for program in PROGRAM_IDS: notedatapaths = (os.path.join(base.xdg_data_home, program), os.path.expanduser("~/.%s" % program)) dirs.extend(notedatapaths) self.monitor_token = self.monitor_directories(*dirs) set_prog = __kupfer_settings__["notes_application"] if set_prog in PROGRAM_SERIVCES: bus_name = PROGRAM_SERIVCES[set_prog][0] bus = dbus.SessionBus() dbus_signal_connect_weakly(bus, "NameOwnerChanged", self._name_owner_changed, dbus_interface="org.freedesktop.DBus", arg0=bus_name)
def initialize(self): bus = dbus.SessionBus() dbus_signal_connect_weakly(bus, "TaskAdded", self._on_tasks_updated, dbus_interface=_IFACE_NAME2) dbus_signal_connect_weakly(bus, "TaskModified", self._on_tasks_updated, dbus_interface=_IFACE_NAME2) dbus_signal_connect_weakly(bus, "TaskDeleted", self._on_tasks_updated, dbus_interface=_IFACE_NAME2) dbus_signal_connect_weakly(bus, "NameOwnerChanged", self._name_owner_changed, dbus_interface="org.freedesktop.DBus", arg0=_SERVICE_NAME2)
def initialize(self): session_bus = dbus.Bus() dbus_signal_connect_weakly(session_bus, 'Message', self._signal_update, dbus_interface=DBUS_GWIBBER_MESSAGES[0]) dbus_signal_connect_weakly(session_bus, 'LoadingComplete', self._signal_update, dbus_interface=DBUS_GWIBBER_SERVICE[0]) for signal in ('Created', 'Updated', 'Deleted'): dbus_signal_connect_weakly(session_bus, signal, self._signal_update, dbus_interface=DBUS_GWIBBER_STREAMS[0])
def initialize(self): dbus_signal_connect_weakly(dbus.Bus(), 'FactsChanged', self._facts_changed, dbus_interface='org.gnome.Hamster')
def _setup_monitor(self): dbus_signal_connect_weakly(dbus.Bus(), 'NameOwnerChanged', self._signal_update, dbus_interface='org.freedesktop.DBus') dbus_signal_connect_weakly(dbus.Bus(), 'PropertiesChanged', self._properties_changed, dbus_interface='org.freedesktop.DBus.Properties')