From 6675d229bcee77341ef46ec3c2252f2dee52ac66 Mon Sep 17 00:00:00 2001 From: Jeremy Henty Date: Mon, 10 Dec 2012 02:00:04 +0000 Subject: Dillo: parameterise window titles. --- src/dpiapi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/dpiapi.c') diff --git a/src/dpiapi.c b/src/dpiapi.c index 2068146c..d8980a17 100644 --- a/src/dpiapi.c +++ b/src/dpiapi.c @@ -49,7 +49,7 @@ static void Dpiapi_dialog_answer_cb(BrowserWindow *bw, int answer) */ void a_Dpiapi_dialog(BrowserWindow *bw, char *server, char *dpip_tag) { - char *question, *alt1, *alt2, *alt3, *alt4, *alt5; + char *title, *msg, *alt1, *alt2, *alt3, *alt4, *alt5; size_t dpip_tag_len; int ret; @@ -61,18 +61,19 @@ void a_Dpiapi_dialog(BrowserWindow *bw, char *server, char *dpip_tag) /* other options can be parsed the same way */ dpip_tag_len = strlen(dpip_tag); - question = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "msg"); + title = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "title"); + msg = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "msg"); alt1 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt1"); alt2 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt2"); alt3 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt3"); alt4 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt4"); alt5 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt5"); - ret = a_Dialog_choice5(question, alt1, alt2, alt3, alt4, alt5); + ret = a_Dialog_choice5(title, msg, alt1, alt2, alt3, alt4, alt5); /* As choice5 is modal, call the callback function directly. */ Dpiapi_dialog_answer_cb(bw, ret); dFree(alt1); dFree(alt2); dFree(alt3); dFree(alt4); dFree(alt5); - dFree(question); + dFree(title); dFree(msg); } -- cgit v1.2.3