diff options
author | Jeremy Henty <onepoint@starurchin.org> | 2012-12-10 02:00:04 +0000 |
---|---|---|
committer | Jeremy Henty <onepoint@starurchin.org> | 2012-12-10 02:00:04 +0000 |
commit | 6675d229bcee77341ef46ec3c2252f2dee52ac66 (patch) | |
tree | 8285797a97d63fd86f2ddd4fdedd6b16cb3c78d5 /src/auth.c | |
parent | fb85e0c89a2fc119d99e80b0070e95ceb5381f67 (diff) |
Dillo: parameterise window titles.
Diffstat (limited to 'src/auth.c')
-rw-r--r-- | src/auth.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -619,20 +619,21 @@ static int Auth_do_auth_dialog(const AuthParse_t *auth_parse, const DilloUrl *url) { int ret; - char *message; + char *title, *msg; AuthDialogData_t *data; const char *typestr = auth_parse->type == DIGEST ? "Digest" : "Basic"; _MSG("auth.c: Auth_do_auth_dialog: realm = '%s'\n", auth_parse->realm); - message = dStrconcat("The server at ", URL_HOST(url), " requires a username" - " and password for \"", auth_parse->realm, "\".\n\n" - "Authentication scheme: ", typestr, NULL); + title = dStrconcat("Dillo: Password for ", auth_parse->realm, NULL); + msg = dStrconcat("The server at ", URL_HOST(url), " requires a username" + " and password for \"", auth_parse->realm, "\".\n\n" + "Authentication scheme: ", typestr, NULL); data = dNew(AuthDialogData_t, 1); data->auth_parse = auth_parse; data->url = a_Url_dup(url); - ret = a_Dialog_user_password(message, Auth_do_auth_dialog_cb, data); - dFree(message); + ret = a_Dialog_user_password(title, msg, Auth_do_auth_dialog_cb, data); + dFree(title); dFree(msg); a_Url_free((void *)data->url); dFree(data); return ret; |