changeset 5482:a41149ee8a29

[gaim-migrate @ 5878] Added multiline support. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 22 May 2003 10:22:18 +0000
parents 084147a0d9e4
children 00032269c317
files src/request.c src/request.h
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
--- 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);