# HG changeset patch # User Richard Laager # Date 1141198122 0 # Node ID 1432330893869c74c26a66b8c5c70118f1ba3124 # Parent 3b7abce487f57af45ee37a8c033c1000a91be86d [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 diff -r 3b7abce487f5 -r 143233089386 src/gtkutils.c --- 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,