| 146 const char *secondary, const char *default_value, |
146 const char *secondary, const char *default_value, |
| 147 gboolean multiline, gboolean masked, gchar *hint, |
147 gboolean multiline, gboolean masked, gchar *hint, |
| 148 const char *ok_text, GCallback ok_cb, |
148 const char *ok_text, GCallback ok_cb, |
| 149 const char *cancel_text, GCallback cancel_cb, |
149 const char *cancel_text, GCallback cancel_cb, |
| 150 PurpleAccount *account, const char *who, PurpleConversation *conv, |
150 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 151 void *user_data) |
151 const char *ui_hint, void *user_data) |
| 152 { |
152 { |
| 153 GntWidget *window, *box, *entry; |
153 GntWidget *window, *box, *entry; |
| 154 |
154 |
| 155 window = setup_request_window(title, primary, secondary, PURPLE_REQUEST_INPUT); |
155 window = setup_request_window(title, primary, secondary, PURPLE_REQUEST_INPUT); |
| 156 |
156 |
| 203 finch_request_choice(const char *title, const char *primary, |
203 finch_request_choice(const char *title, const char *primary, |
| 204 const char *secondary, int default_value, |
204 const char *secondary, int default_value, |
| 205 const char *ok_text, GCallback ok_cb, |
205 const char *ok_text, GCallback ok_cb, |
| 206 const char *cancel_text, GCallback cancel_cb, |
206 const char *cancel_text, GCallback cancel_cb, |
| 207 PurpleAccount *account, const char *who, PurpleConversation *conv, |
207 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 208 void *user_data, va_list choices) |
208 const char *ui_hint, void *user_data, va_list choices) |
| 209 { |
209 { |
| 210 GntWidget *window, *combo, *box; |
210 GntWidget *window, *combo, *box; |
| 211 const char *text; |
211 const char *text; |
| 212 int val; |
212 int val; |
| 213 |
213 |
| 247 |
247 |
| 248 static void* |
248 static void* |
| 249 finch_request_action(const char *title, const char *primary, |
249 finch_request_action(const char *title, const char *primary, |
| 250 const char *secondary, int default_value, |
250 const char *secondary, int default_value, |
| 251 PurpleAccount *account, const char *who, PurpleConversation *conv, |
251 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 252 void *user_data, size_t actioncount, |
252 const char *ui_hint, void *user_data, size_t actioncount, |
| 253 va_list actions) |
253 va_list actions) |
| 254 { |
254 { |
| 255 GntWidget *window, *box, *button; |
255 GntWidget *window, *box, *button; |
| 256 int i; |
256 int i; |
| 257 |
257 |
| 391 finch_request_fields(const char *title, const char *primary, |
391 finch_request_fields(const char *title, const char *primary, |
| 392 const char *secondary, PurpleRequestFields *allfields, |
392 const char *secondary, PurpleRequestFields *allfields, |
| 393 const char *ok, GCallback ok_cb, |
393 const char *ok, GCallback ok_cb, |
| 394 const char *cancel, GCallback cancel_cb, |
394 const char *cancel, GCallback cancel_cb, |
| 395 PurpleAccount *account, const char *who, PurpleConversation *conv, |
395 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 396 void *userdata) |
396 const char *ui_hint, void *userdata) |
| 397 { |
397 { |
| 398 GntWidget *window, *box; |
398 GntWidget *window, *box; |
| 399 GList *grlist; |
399 GList *grlist; |
| 400 GntWidget *screenname = NULL, *accountlist = NULL; |
400 GntWidget *screenname = NULL, *accountlist = NULL; |
| 401 |
401 |
| 643 static void * |
643 static void * |
| 644 finch_request_file(const char *title, const char *filename, |
644 finch_request_file(const char *title, const char *filename, |
| 645 gboolean savedialog, |
645 gboolean savedialog, |
| 646 GCallback ok_cb, GCallback cancel_cb, |
646 GCallback ok_cb, GCallback cancel_cb, |
| 647 PurpleAccount *account, const char *who, PurpleConversation *conv, |
647 PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 648 void *user_data) |
648 const char *ui_hint, void *user_data) |
| 649 { |
649 { |
| 650 GntWidget *window = gnt_file_sel_new(); |
650 GntWidget *window = gnt_file_sel_new(); |
| 651 GntFileSel *sel = GNT_FILE_SEL(window); |
651 GntFileSel *sel = GNT_FILE_SEL(window); |
| 652 PurpleGntFileRequest *data = g_new0(PurpleGntFileRequest, 1); |
652 PurpleGntFileRequest *data = g_new0(PurpleGntFileRequest, 1); |
| 653 const char *path; |
653 const char *path; |