--- a/pidgin/gtkconn.c Sun Sep 16 15:07:16 2007 +0000
+++ b/pidgin/gtkconn.c Sun Sep 16 18:11:48 2007 +0000
@@ -53,7 +53,7 @@
* The key is a pointer to the PurpleAccount and the
* value is a pointer to a PidginAutoRecon.
-static GHashTable *hash = NULL;
+static GHashTable *auto_reconns = NULL; pidgin_connection_connect_progress(PurpleConnection *gc,
@@ -80,7 +80,7 @@
pidgin_status_box_set_connecting(PIDGIN_STATUS_BOX(gtkblist->statusbox),
(purple_connections_get_connecting() != NULL));
- g_hash_table_remove(hash, account);
+ g_hash_table_remove(auto_reconns, account); pidgin_blist_update_account_error_state(account, NULL);
@@ -120,7 +120,7 @@
purple_debug_info("autorecon", "do_signon called\n");
g_return_val_if_fail(account != NULL, FALSE);
- info = g_hash_table_lookup(hash, account);
+ info = g_hash_table_lookup(auto_reconns, account); @@ -143,13 +143,13 @@
account = purple_connection_get_account(gc);
- info = g_hash_table_lookup(hash, account);
+ info = g_hash_table_lookup(auto_reconns, account); pidgin_blist_update_account_error_state(account, text);
info = g_new0(PidginAutoRecon, 1);
- g_hash_table_insert(hash, account, info);
+ g_hash_table_insert(auto_reconns, account, info); info->delay = g_random_int_range(INITIAL_RECON_DELAY_MIN, INITIAL_RECON_DELAY_MAX);
info->delay = MIN(2 * info->delay, MAX_RECON_DELAY);
@@ -160,7 +160,7 @@
- g_hash_table_remove(hash, account);
+ g_hash_table_remove(auto_reconns, account); if (purple_account_get_alias(account))
@@ -204,7 +204,7 @@
PurpleAccount *account = (PurpleAccount*)list->data;
- g_hash_table_remove(hash, account);
+ g_hash_table_remove(auto_reconns, account); if (purple_account_is_disconnected(account))
@@ -265,7 +265,7 @@
account_removed_cb(PurpleAccount *account, gpointer user_data)
- g_hash_table_remove(hash, account);
+ g_hash_table_remove(auto_reconns, account); pidgin_blist_update_account_error_state(account, NULL);
@@ -286,7 +286,7 @@
pidgin_connection_init(void)
- hash = g_hash_table_new_full(
+ auto_reconns = g_hash_table_new_full( g_direct_hash, g_direct_equal,
@@ -300,5 +300,5 @@
purple_signals_disconnect_by_handle(pidgin_connection_get_handle());
- g_hash_table_destroy(hash);
+ g_hash_table_destroy(auto_reconns);