comparison src/account.c @ 6109:0922bb7a7bbc

[gaim-migrate @ 6571] Make attempting to sign on to an account twice not crash Gaim, and make the prompt for password request window only open once at max. I might change this in a few minutes, but this works, and I wanted to commit it before I break something. Move the gaim_request_input() call for "Please enter your password" to connection.c instead of gtkconn.c. There is no need for this to be in gtkconn.c, and doing it in core means less work for UIs. Make closing a notify window call the cancel action. Set the titles for request windows, when given. Remove a bit of odd, un-needed code from main.c (hitting "enter" in the password field was calling doenter which called dologin. Now it just calls dologin). committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 13 Jul 2003 18:33:25 +0000
parents 6a3b676eb36a
children d1d8e70cf33d
comparison
equal deleted inserted replaced
6108:edbd278822a0 6109:0922bb7a7bbc
175 GaimConnection *gc; 175 GaimConnection *gc;
176 176
177 g_return_val_if_fail(account != NULL, NULL); 177 g_return_val_if_fail(account != NULL, NULL);
178 g_return_val_if_fail(!gaim_account_is_connected(account), NULL); 178 g_return_val_if_fail(!gaim_account_is_connected(account), NULL);
179 179
180 // if (gaim_account_is_connected(account)) 180 if (gaim_account_get_connection(account) != NULL)
181 // return gaim_account_get_connection(account); 181 return NULL;
182 182
183 gc = gaim_connection_new(account); 183 gc = gaim_connection_new(account);
184 184
185 gaim_debug(GAIM_DEBUG_INFO, "account", 185 gaim_debug(GAIM_DEBUG_INFO, "account",
186 "Connecting to account %p. gc = %p\n", account, gc); 186 "Connecting to account %p. gc = %p\n", account, gc);