# HG changeset patch # User Christian Hammond # Date 1053598938 0 # Node ID a41149ee8a291334c1b4f8bc184a2073919820db # Parent 084147a0d9e4f96795c6019c4655a22fc24cfbd6 [gaim-migrate @ 5878] Added multiline support. committer: Tailor Script diff -r 084147a0d9e4 -r a41149ee8a29 src/request.c --- a/src/request.c Thu May 22 10:21:55 2003 +0000 +++ b/src/request.c Thu May 22 10:22:18 2003 +0000 @@ -37,6 +37,7 @@ void * gaim_request_input(void *handle, const char *title, const char *primary, const char *secondary, const char *default_value, + gboolean multiline, const char *ok_text, GCallback ok_cb, const char *cancel_text, GCallback cancel_cb, void *user_data) @@ -56,7 +57,8 @@ info->type = GAIM_REQUEST_INPUT; info->handle = handle; info->ui_handle = ops->request_input(title, primary, secondary, - default_value, ok_text, ok_cb, + default_value, multiline, + ok_text, ok_cb, cancel_text, cancel_cb, user_data); @@ -116,7 +118,8 @@ info->type = GAIM_REQUEST_CHOICE; info->handle = handle; info->ui_handle = ops->request_choice(title, primary, secondary, - default_value, ok_text, ok_cb, + default_value, + ok_text, ok_cb, cancel_text, cancel_cb, user_data, choices); diff -r 084147a0d9e4 -r a41149ee8a29 src/request.h --- a/src/request.h Thu May 22 10:21:55 2003 +0000 +++ b/src/request.h Thu May 22 10:22:18 2003 +0000 @@ -45,6 +45,7 @@ { void *(*request_input)(const char *title, const char *primary, const char *secondary, const char *default_value, + gboolean multiline, const char *ok_text, GCallback ok_cb, const char *cancel_text, GCallback cancel_cb, void *user_data); @@ -57,10 +58,12 @@ const char *secondary, unsigned int default_action, void *user_data, va_list actions); - void (*close_request)(GaimRequestType type, void *uihandle); + void (*close_request)(GaimRequestType type, void *ui_handle); } GaimRequestUiOps; +typedef void (*GaimRequestInputCb)(const char *, void *); + /**************************************************************************/ /** @name Request API */ /**************************************************************************/ @@ -74,6 +77,7 @@ * @param primary The main point of the message. * @param secondary The secondary information. * @param default_value The default value. + * @param multiline TRUE if the inputted text can span multiple lines. * @param ok_text The text for the OK button. * @param ok_cb The callback for the OK button. * @param cancel_text The text for the cancel button. @@ -84,7 +88,7 @@ */ void *gaim_request_input(void *handle, const char *title, const char *primary, const char *secondary, - const char *default_value, + const char *default_value, gboolean multiline, const char *ok_text, GCallback ok_cb, const char *cancel_text, GCallback cancel_cb, void *user_data);