Mercurial > pidgin
changeset 13365:143233089386
[gaim-migrate @ 15738]
If we're already showing autocomplete entries for disconnected accounts, then an account signing on or off doesn't matter, so we can avoid doing the rebuilding in that case.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 01 Mar 2006 07:28:42 +0000 |
parents | 3b7abce487f5 |
children | 0758db6d46ac |
files | src/gtkutils.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkutils.c Wed Mar 01 07:27:09 2006 +0000 +++ b/src/gtkutils.c Wed Mar 01 07:28:42 2006 +0000 @@ -2163,10 +2163,14 @@ #endif /* !NEW_STYLE_COMPLETION */ - gaim_signal_connect(gaim_connections_get_handle(), "signed-on", entry, - GAIM_CALLBACK(repopulate_autocomplete), cb_data); - gaim_signal_connect(gaim_connections_get_handle(), "signed-off", entry, - GAIM_CALLBACK(repopulate_autocomplete), cb_data); + if (!all) + { + gaim_signal_connect(gaim_connections_get_handle(), "signed-on", entry, + GAIM_CALLBACK(repopulate_autocomplete), cb_data); + gaim_signal_connect(gaim_connections_get_handle(), "signed-off", entry, + GAIM_CALLBACK(repopulate_autocomplete), cb_data); + } + gaim_signal_connect(gaim_accounts_get_handle(), "account-added", entry, GAIM_CALLBACK(repopulate_autocomplete), cb_data); gaim_signal_connect(gaim_accounts_get_handle(), "account-removed", entry,