Mercurial > pidgin
view plugins/tcl/signal-test.tcl @ 12797:eda1572c788b
[gaim-migrate @ 15144]
SF Patch #1390008 from Sadrul
"GaimGtkConv: Update tab icons, and some other small changes"
This seems to make the Send To menu update better. I haven't seen this patch make anything worse yet, so I'm committing it. If you start seeing weird update errors, let Sadrul or me know. I thought I had a case of the Send To menu not updating even with this patch, but I haven't yet been able to duplicate it.
Sadrul's description:
'1. Fixes the tab-icons/send-to menu updates by
listening for the appropriate signals. This patch
removes the "updated" field from conversation-uiops.
There is an existing "-updated" signal which can
replace the uiops.
2. If having conversations with more than one accounts
of a contact, and the buddy-icon of an inactive account
is changed, then the new icon is showed (I think), even
though it is not the buddy icon for the currently
active conversation. This patch fixes that.
3. Emit "buddy-typing" and "-stopped" signal whenever
the typing-state is changed. Currently, the
typing-state of a conversation is sometimes changed
without emitting the signal. This patch fixes that.'
I rejected #4.
'5. Emits the "chat-left" signal *after* setting
"chat->left" to TRUE.
6. Show a buddy for an account only once in the SendTo
menu (currently Gaim shows the same buddy more than
once if the buddy exists in more than one groups). This
is done by keeping a list of GaimPresence -- since
that's the only thing the blist-nodes for the same
buddy share.'
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 09 Jan 2006 21:29:53 +0000 |
parents | 4d2d3104c92f |
children |
line wrap: on
line source
gaim::signal connect [gaim::account handle] account-away { account state message } { gaim::debug -info "tcl signal" "account-away [gaim::account username $account] \"$state\" \"$message\"" } gaim::signal connect [gaim::account handle] account-connecting { account } { gaim::debug -info "tcl signal" "account-connecting [gaim::account username $account]" } gaim::signal connect [gaim::account handle] account-set-info { account info } { gaim::debug -info "tcl signal" "account-set-info [gaim::account username $account] $info" } gaim::signal connect [gaim::account handle] account-setting-info { account info } { gaim::debug -info "tcl signal" "account-set-info [gaim::account username $account] $info" } gaim::signal connect [gaim::buddy handle] buddy-away { buddy } { gaim::debug -info "tcl signal" "buddy-away [gaim::account username [lindex $buddy 2]] [lindex $buddy 1]" } gaim::signal connect [gaim::buddy handle] buddy-back { buddy } { gaim::debug -info "tcl signal" "buddy-back [gaim::account username [lindex $buddy 2]] [lindex $buddy 1]" } gaim::signal connect [gaim::buddy handle] buddy-idle { buddy } { gaim::debug -info "tcl signal" "buddy-idle [gaim::account username [lindex $buddy 2]] [lindex $buddy 1]" } gaim::signal connect [gaim::buddy handle] buddy-unidle { buddy } { gaim::debug -info "tcl signal" "buddy-unidle [gaim::account username [lindex $buddy 2]] [lindex $buddy 1]" } gaim::signal connect [gaim::buddy handle] buddy-signed-on { buddy } { gaim::debug -info "tcl signal" "buddy-signed-on [gaim::account username [lindex $buddy 2]] [lindex $buddy 1]" } gaim::signal connect [gaim::buddy handle] buddy-signed-off { buddy } { gaim::debug -info "tcl signal" "buddy-signed-off [gaim::account username [lindex $buddy 2]] [lindex $buddy 1]" } gaim::signal connect [gaim::core handle] quitting {} { gaim::debug -info "tcl signal" "quitting" } gaim::signal connect [gaim::conversation handle] receiving-chat-msg { account who what id flags } { gaim::debug -info "tcl signal" "receiving-chat-msg [gaim::account username $account] $id $flags $who \"$what\"" return 0 } gaim::signal connect [gaim::conversation handle] receiving-im-msg { account who what id flags } { gaim::debug -info "tcl signal" "receiving-im-msg [gaim::account username $account] $id $flags $who \"$what\"" return 0 } gaim::signal connect [gaim::conversation handle] received-chat-msg { account who what id flags } { gaim::debug -info "tcl signal" "received-chat-msg [gaim::account username $account] $id $flags $who \"$what\"" } gaim::signal connect [gaim::conversation handle] received-im-msg { account who what id flags } { gaim::debug -info "tcl signal" "received-im-msg [gaim::account username $account] $id $flags $who \"$what\"" } gaim::signal connect [gaim::conversation handle] sending-chat-msg { account what id } { gaim::debug -info "tcl signal" "sending-chat-msg [gaim::account username $account] $id \"$what\"" return 0 } gaim::signal connect [gaim::conversation handle] sending-im-msg { account who what } { gaim::debug -info "tcl signal" "sending-im-msg [gaim::account username $account] $who \"$what\"" return 0 } gaim::signal connect [gaim::conversation handle] sent-chat-msg { account id what } { gaim::debug -info "tcl signal" "sent-chat-msg [gaim::account username $account] $id \"$what\"" } gaim::signal connect [gaim::conversation handle] sent-im-msg { account who what } { gaim::debug -info "tcl signal" "sent-im-msg [gaim::account username $account] $who \"$what\"" } gaim::signal connect [gaim::connection handle] signed-on { gc } { gaim::debug -info "tcl signal" "signed-on [gaim::account username [gaim::connection account $gc]]" } gaim::signal connect [gaim::connection handle] signed-off { gc } { gaim::debug -info "tcl signal" "signed-off [gaim::account username [gaim::connection account $gc]]" } gaim::signal connect [gaim::connection handle] signing-on { gc } { gaim::debug -info "tcl signal" "signing-on [gaim::account username [gaim::connection account $gc]]" } if { 0 } { gaim::signal connect signing-off { gaim::debug -info "tcl signal" "signing-off [gaim::account username [gaim::connection account $event::gc]]" } gaim::signal connect update-idle { gaim::debug -info "tcl signal" "update-idle" } } proc plugin_init { } { list "Tcl Signal Test" \ "$gaim::version" \ "Tests Tcl signal handlers" \ "Debugs a ridiculous amount of signal information." \ "Ethan Blanton <eblanton@cs.purdue.edu>" \ "http://gaim.sourceforge.net/" }