| 143 const char *secondary, const char *default_value, |
143 const char *secondary, const char *default_value, |
| 144 gboolean multiline, gboolean masked, gchar *hint, |
144 gboolean multiline, gboolean masked, gchar *hint, |
| 145 const char *ok_text, GCallback ok_cb, |
145 const char *ok_text, GCallback ok_cb, |
| 146 const char *cancel_text, GCallback cancel_cb, |
146 const char *cancel_text, GCallback cancel_cb, |
| 147 PurpleAccount *account, const char *who, PurpleConversation *conv, |
147 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 148 void *user_data) |
148 const char *ui_hint, void *user_data) |
| 149 { |
149 { |
| 150 GntWidget *window, *box, *entry; |
150 GntWidget *window, *box, *entry; |
| 151 |
151 |
| 152 window = setup_request_window(title, primary, secondary, PURPLE_REQUEST_INPUT); |
152 window = setup_request_window(title, primary, secondary, PURPLE_REQUEST_INPUT); |
| 153 |
153 |
| 200 finch_request_choice(const char *title, const char *primary, |
200 finch_request_choice(const char *title, const char *primary, |
| 201 const char *secondary, int default_value, |
201 const char *secondary, int default_value, |
| 202 const char *ok_text, GCallback ok_cb, |
202 const char *ok_text, GCallback ok_cb, |
| 203 const char *cancel_text, GCallback cancel_cb, |
203 const char *cancel_text, GCallback cancel_cb, |
| 204 PurpleAccount *account, const char *who, PurpleConversation *conv, |
204 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 205 void *user_data, va_list choices) |
205 const char *ui_hint, void *user_data, va_list choices) |
| 206 { |
206 { |
| 207 GntWidget *window, *combo, *box; |
207 GntWidget *window, *combo, *box; |
| 208 const char *text; |
208 const char *text; |
| 209 int val; |
209 int val; |
| 210 |
210 |
| 244 |
244 |
| 245 static void* |
245 static void* |
| 246 finch_request_action(const char *title, const char *primary, |
246 finch_request_action(const char *title, const char *primary, |
| 247 const char *secondary, int default_value, |
247 const char *secondary, int default_value, |
| 248 PurpleAccount *account, const char *who, PurpleConversation *conv, |
248 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 249 void *user_data, size_t actioncount, |
249 const char *ui_hint, void *user_data, size_t actioncount, |
| 250 va_list actions) |
250 va_list actions) |
| 251 { |
251 { |
| 252 GntWidget *window, *box, *button; |
252 GntWidget *window, *box, *button; |
| 253 int i; |
253 int i; |
| 254 |
254 |
| 388 finch_request_fields(const char *title, const char *primary, |
388 finch_request_fields(const char *title, const char *primary, |
| 389 const char *secondary, PurpleRequestFields *allfields, |
389 const char *secondary, PurpleRequestFields *allfields, |
| 390 const char *ok, GCallback ok_cb, |
390 const char *ok, GCallback ok_cb, |
| 391 const char *cancel, GCallback cancel_cb, |
391 const char *cancel, GCallback cancel_cb, |
| 392 PurpleAccount *account, const char *who, PurpleConversation *conv, |
392 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 393 void *userdata) |
393 const char *ui_hint, void *userdata) |
| 394 { |
394 { |
| 395 GntWidget *window, *box; |
395 GntWidget *window, *box; |
| 396 GList *grlist; |
396 GList *grlist; |
| 397 GntWidget *screenname = NULL, *accountlist = NULL; |
397 GntWidget *screenname = NULL, *accountlist = NULL; |
| 398 |
398 |
| 640 static void * |
640 static void * |
| 641 finch_request_file(const char *title, const char *filename, |
641 finch_request_file(const char *title, const char *filename, |
| 642 gboolean savedialog, |
642 gboolean savedialog, |
| 643 GCallback ok_cb, GCallback cancel_cb, |
643 GCallback ok_cb, GCallback cancel_cb, |
| 644 PurpleAccount *account, const char *who, PurpleConversation *conv, |
644 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 645 void *user_data) |
645 const char *ui_hint, void *user_data) |
| 646 { |
646 { |
| 647 GntWidget *window = gnt_file_sel_new(); |
647 GntWidget *window = gnt_file_sel_new(); |
| 648 GntFileSel *sel = GNT_FILE_SEL(window); |
648 GntFileSel *sel = GNT_FILE_SEL(window); |
| 649 PurpleGntFileRequest *data = g_new0(PurpleGntFileRequest, 1); |
649 PurpleGntFileRequest *data = g_new0(PurpleGntFileRequest, 1); |
| 650 const char *path; |
650 const char *path; |