Mercurial > pidgin
comparison finch/gntrequest.c @ 21069:fdefa5eb46e2
propagate from branch 'im.pidgin.pidgin' (head 1757e82b3ed17d8ad45db9d2c62f0187a8bee93d)
to branch 'org.maemo.garage.pidgin.pidgin.dialog-transience' (head a7af6ce1e8f29eb0eb1bffc0ebb72813c4c5fdbf)
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Sat, 06 Oct 2007 15:55:47 +0000 |
parents | 2354c9748a66 591267f6f1d5 |
children | 8c9aad9479c0 |
comparison
equal
deleted
inserted
replaced
20794:366204358e93 | 21069:fdefa5eb46e2 |
---|---|
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; |