| 113 finch_request_input(const char *title, const char *primary, |
113 finch_request_input(const char *title, const char *primary, |
| 114 const char *secondary, const char *default_value, |
114 const char *secondary, const char *default_value, |
| 115 gboolean multiline, gboolean masked, gchar *hint, |
115 gboolean multiline, gboolean masked, gchar *hint, |
| 116 const char *ok_text, GCallback ok_cb, |
116 const char *ok_text, GCallback ok_cb, |
| 117 const char *cancel_text, GCallback cancel_cb, |
117 const char *cancel_text, GCallback cancel_cb, |
| |
118 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 118 void *user_data) |
119 void *user_data) |
| 119 { |
120 { |
| 120 GntWidget *window, *box, *entry; |
121 GntWidget *window, *box, *entry; |
| 121 |
122 |
| 122 window = setup_request_window(title, primary, secondary, PURPLE_REQUEST_INPUT); |
123 window = setup_request_window(title, primary, secondary, PURPLE_REQUEST_INPUT); |
| 168 static void * |
169 static void * |
| 169 finch_request_choice(const char *title, const char *primary, |
170 finch_request_choice(const char *title, const char *primary, |
| 170 const char *secondary, unsigned int default_value, |
171 const char *secondary, unsigned int default_value, |
| 171 const char *ok_text, GCallback ok_cb, |
172 const char *ok_text, GCallback ok_cb, |
| 172 const char *cancel_text, GCallback cancel_cb, |
173 const char *cancel_text, GCallback cancel_cb, |
| |
174 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 173 void *user_data, va_list choices) |
175 void *user_data, va_list choices) |
| 174 { |
176 { |
| 175 GntWidget *window, *combo, *box; |
177 GntWidget *window, *combo, *box; |
| 176 const char *text; |
178 const char *text; |
| 177 int val; |
179 int val; |
| 210 } |
212 } |
| 211 |
213 |
| 212 static void* |
214 static void* |
| 213 finch_request_action(const char *title, const char *primary, |
215 finch_request_action(const char *title, const char *primary, |
| 214 const char *secondary, unsigned int default_value, |
216 const char *secondary, unsigned int default_value, |
| |
217 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 215 void *user_data, size_t actioncount, |
218 void *user_data, size_t actioncount, |
| 216 va_list actions) |
219 va_list actions) |
| 217 { |
220 { |
| 218 GntWidget *window, *box, *button; |
221 GntWidget *window, *box, *button; |
| 219 int i; |
222 int i; |
| 337 static void * |
340 static void * |
| 338 finch_request_fields(const char *title, const char *primary, |
341 finch_request_fields(const char *title, const char *primary, |
| 339 const char *secondary, PurpleRequestFields *allfields, |
342 const char *secondary, PurpleRequestFields *allfields, |
| 340 const char *ok, GCallback ok_cb, |
343 const char *ok, GCallback ok_cb, |
| 341 const char *cancel, GCallback cancel_cb, |
344 const char *cancel, GCallback cancel_cb, |
| |
345 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 342 void *userdata) |
346 void *userdata) |
| 343 { |
347 { |
| 344 GntWidget *window, *box; |
348 GntWidget *window, *box; |
| 345 GList *grlist; |
349 GList *grlist; |
| 346 |
350 |
| 574 |
578 |
| 575 static void * |
579 static void * |
| 576 finch_request_file(const char *title, const char *filename, |
580 finch_request_file(const char *title, const char *filename, |
| 577 gboolean savedialog, |
581 gboolean savedialog, |
| 578 GCallback ok_cb, GCallback cancel_cb, |
582 GCallback ok_cb, GCallback cancel_cb, |
| |
583 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 579 void *user_data) |
584 void *user_data) |
| 580 { |
585 { |
| 581 GntWidget *window = gnt_file_sel_new(); |
586 GntWidget *window = gnt_file_sel_new(); |
| 582 GntFileSel *sel = GNT_FILE_SEL(window); |
587 GntFileSel *sel = GNT_FILE_SEL(window); |
| 583 PurpleGntFileRequest *data = g_new0(PurpleGntFileRequest, 1); |
588 PurpleGntFileRequest *data = g_new0(PurpleGntFileRequest, 1); |