[Pidgin] #11130: DBUS: Cannot get PurpleAccount from PurpleConnection for "connection_error" signal
Pidgin
trac at pidgin.im
Sun Jan 17 22:54:00 EST 2010
#11130: DBUS: Cannot get PurpleAccount from PurpleConnection for
"connection_error" signal
--------------------+-------------------------------------------------------
Reporter: yonas | Owner:
Type: defect | Status: new
Milestone: 2.7.0 | Component: libpurple
Version: 2.6.5 | Resolution:
Keywords: |
--------------------+-------------------------------------------------------
Comment(by yonas):
This patch adds three new signals:
account-signed-on(account)
account-signed-off(account)
account-connection-error(account, reason, description)
Example usage:
def account_connection_error(account, err, desc):
if (account != myaccount):
return
print "<error>%s</error>" % (desc)
def account_signed_off(account):
if (account != myaccount):
return
print "account %d signed off" % (account)
def account_signed_on(account):
if (account != myaccount):
return
print "account %d signed on" % (account)
#
# Add this to the bus initialization
#
bus.add_signal_receiver(account_connection_error,
dbus_interface = _pidgin_iface,
signal_name = "AccountConnectionError")
bus.add_signal_receiver(account_signed_off,
dbus_interface = _pidgin_iface,
signal_name = "AccountSignedOff")
bus.add_signal_receiver(account_signed_on,
dbus_interface = _pidgin_iface,
signal_name = "AccountSignedOn")
--
Ticket URL: <http://developer.pidgin.im/ticket/11130#comment:4>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list