Mercurial > pidgin
comparison src/request.c @ 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 | e8e498255369 |
| children | b7c0be69c749 |
comparison
equal
deleted
inserted
replaced
| 5481:084147a0d9e4 | 5482:a41149ee8a29 |
|---|---|
| 35 | 35 |
| 36 | 36 |
| 37 void * | 37 void * |
| 38 gaim_request_input(void *handle, const char *title, const char *primary, | 38 gaim_request_input(void *handle, const char *title, const char *primary, |
| 39 const char *secondary, const char *default_value, | 39 const char *secondary, const char *default_value, |
| 40 gboolean multiline, | |
| 40 const char *ok_text, GCallback ok_cb, | 41 const char *ok_text, GCallback ok_cb, |
| 41 const char *cancel_text, GCallback cancel_cb, | 42 const char *cancel_text, GCallback cancel_cb, |
| 42 void *user_data) | 43 void *user_data) |
| 43 { | 44 { |
| 44 GaimRequestUiOps *ops; | 45 GaimRequestUiOps *ops; |
| 54 | 55 |
| 55 info = g_new0(GaimRequestInfo, 1); | 56 info = g_new0(GaimRequestInfo, 1); |
| 56 info->type = GAIM_REQUEST_INPUT; | 57 info->type = GAIM_REQUEST_INPUT; |
| 57 info->handle = handle; | 58 info->handle = handle; |
| 58 info->ui_handle = ops->request_input(title, primary, secondary, | 59 info->ui_handle = ops->request_input(title, primary, secondary, |
| 59 default_value, ok_text, ok_cb, | 60 default_value, multiline, |
| 61 ok_text, ok_cb, | |
| 60 cancel_text, cancel_cb, | 62 cancel_text, cancel_cb, |
| 61 user_data); | 63 user_data); |
| 62 | 64 |
| 63 handles = g_list_append(handles, info); | 65 handles = g_list_append(handles, info); |
| 64 | 66 |
| 114 | 116 |
| 115 info = g_new0(GaimRequestInfo, 1); | 117 info = g_new0(GaimRequestInfo, 1); |
| 116 info->type = GAIM_REQUEST_CHOICE; | 118 info->type = GAIM_REQUEST_CHOICE; |
| 117 info->handle = handle; | 119 info->handle = handle; |
| 118 info->ui_handle = ops->request_choice(title, primary, secondary, | 120 info->ui_handle = ops->request_choice(title, primary, secondary, |
| 119 default_value, ok_text, ok_cb, | 121 default_value, |
| 122 ok_text, ok_cb, | |
| 120 cancel_text, cancel_cb, | 123 cancel_text, cancel_cb, |
| 121 user_data, choices); | 124 user_data, choices); |
| 122 | 125 |
| 123 handles = g_list_append(handles, info); | 126 handles = g_list_append(handles, info); |
| 124 | 127 |
