Mercurial > pidgin.yaz
view doc/blist-signals.dox @ 24421:3d6fe79753c3
This should fix another crash I've seen. We weren't correctly
cancelling the proxy connect when we destroyed the servconn
because we were only calling msn_servconn_disconnect() if we
had actually connected.
So always call msn_servconn_disconnect() from msn_servconn_destroy()
and let the disconnect function deal with only closing stuff that
is actually open.
Here's the backtrace:
#0 0x0000000000000000 in ?? ()
#1 0x00000000005f95e0 in connect_cb (data=0x2ab92ef6e7b0, source=7, error_message=0x0)
at servconn.c:185
#2 0x000000000056e7da in purple_proxy_connect_data_connected (connect_data=0x2ab92ef70260)
at proxy.c:598
#3 0x000000000056e90d in socket_ready_cb (data=0x2ab92ef70260, source=7, cond=PURPLE_INPUT_WRITE)
at proxy.c:657
#4 0x00000000004db70c in pidgin_io_invoke (source=0x2ab92ee4be50, condition=G_IO_OUT,
data=0x2ab92dfd3130) at gtkeventloop.cc:79
In frame 1, servconn is not valid (it has already been freed)
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 18 Nov 2008 07:32:23 +0000 |
parents | ff00e91f962e |
children | 0924698e2362 |
line wrap: on
line source
/** @page blist-signals Buddy List Signals @signals @signal buddy-status-changed @signal buddy-idle-changed @signal buddy-signed-on @signal buddy-signed-off @signal update-idle @signal blist-node-extended-menu @signal buddy-added @signal buddy-removed @signal buddy-icon-changed @signal blist-node-aliased @endsignals @see blist.h <hr> @signaldef buddy-status-changed @signalproto void (*buddy_away)(PurpleBuddy *buddy, PurpleStatus *old_status, PurpleStatus *status); @endsignalproto @signaldesc Emitted when a buddy on your buddy list goes away. @param buddy The buddy whose status changed. @param old_status The status that the buddy just changed from. @param status The status that the buddy just changed to. @endsignaldef @signaldef buddy-idle-changed @signalproto void (*buddy_idle)(PurpleBuddy *buddy, gboolean old_idle, gboolean idle); @endsignalproto @signaldesc Emitted when a buddy on your buddy list becomes idle. @param buddy The buddy whose idle status changed. @param old_idle Whether the buddy was idle. @param idle Whether the buddy is currently idle. @endsignaldef @signaldef buddy-signed-on @signalproto void (*buddy_signed_on)(PurpleBuddy *buddy); @endsignalproto @signaldesc Emitted when a buddy on your buddy list signs on. @param buddy The buddy that signed on. @endsignaldef @signaldef buddy-signed-off @signalproto void (*buddy_signed_off)(PurpleBuddy *buddy); @endsignalproto @signaldesc Emitted when a buddy on your buddy list signs off. @param buddy The buddy that signed off. @endsignaldef @signaldef update-idle @signalproto void (*update_idle)(); @endsignalproto @signaldesc Emitted when the buddy list is refreshed and the idle times are updated. @endsignaldef @signaldef blist-node-extended-menu @signalproto void (*blist_node_extended_menu)(PurpleBlistNode *node, GList **menu) @endsignalproto @signaldesc Emitted when a buddlist menu is being constructed @a menu is a pointer to a GList of PurpleBlistNodeAction's allowing a plugin to add menu items @endsignaldef @signaldef buddy-added @signalproto void (*buddy_added)(PurpleBuddy *buddy) @endsignalproto @signaldesc Emitted when a new buddy is added to the buddy list. @endsignaldef @signaldef buddy-removed @signalproto void (*buddy_removed)(PurpleBuddy *buddy) @endsignalproto @signaldesc Emitted when a buddy is removed from the buddy list. @endsignaldef @signaldef buddy-icon-changed @signalproto void (*buddy_icon_changed)(PurpleBuddy *buddy) @endsignalproto @signaldesc Emitted when a buddy's icon is set. @endsignaldef @signaldef blist-node-aliased @signalproto void (*blist_node_aliased)(PurpleBlistNode *node, const char *old_alias) @endsignalproto @signaldesc Emitted when a blist node (buddy, chat, or contact) is aliased. @endsignaldef */ // vim: syntax=c.doxygen tw=75 et