comparison src/connection.c @ 9699:267eab8f3fa4

[gaim-migrate @ 10558] Add a password hint to the "Enter password" dialog. Also added a gaim_account_get_protocol_name() to account.c/.h This change sponsored in part by Daniel Atallah, Jon Oberheide, Mark Doliner, the National Science Foundation, and by viewers like you. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 07 Aug 2004 15:04:15 +0000
parents 7a8aa87164ae
children f462f91edeb2
comparison
equal deleted inserted replaced
9698:bd5abccacff2 9699:267eab8f3fa4
190 const gchar *username = gaim_account_get_username(account); 190 const gchar *username = gaim_account_get_username(account);
191 191
192 gaim_debug(GAIM_DEBUG_INFO, "connection", "Requesting password\n"); 192 gaim_debug(GAIM_DEBUG_INFO, "connection", "Requesting password\n");
193 gaim_connection_destroy(gc); 193 gaim_connection_destroy(gc);
194 escaped = g_markup_escape_text(username, strlen(username)); 194 escaped = g_markup_escape_text(username, strlen(username));
195 primary = g_strdup_printf(_("Enter password for %s"), escaped); 195 primary = g_strdup_printf(_("Enter password for %s (%s)"), escaped,
196 gaim_account_get_protocol_name(account));
196 gaim_request_input(gc, NULL, primary, NULL, NULL, FALSE, TRUE, NULL, 197 gaim_request_input(gc, NULL, primary, NULL, NULL, FALSE, TRUE, NULL,
197 _("OK"), G_CALLBACK(request_pass_ok_cb), 198 _("OK"), G_CALLBACK(request_pass_ok_cb),
198 _("Cancel"), NULL, account); 199 _("Cancel"), NULL, account);
199 g_free(primary); 200 g_free(primary);
200 g_free(escaped); 201 g_free(escaped);