comparison src/request.c @ 6035:8c44020a958e

[gaim-migrate @ 6485] gaim_request_input() now takes a masked bool, which, if enabled, masks the text on the entry field so that it cannot be seen. Good for password input requests, and what do you know, that's why this is written! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 05 Jul 2003 21:54:19 +0000
parents 327bc2f78340
children de67cb0dd09d
comparison
equal deleted inserted replaced
6034:5a0060191a77 6035:8c44020a958e
579 /* -- */ 579 /* -- */
580 580
581 void * 581 void *
582 gaim_request_input(void *handle, const char *title, const char *primary, 582 gaim_request_input(void *handle, const char *title, const char *primary,
583 const char *secondary, const char *default_value, 583 const char *secondary, const char *default_value,
584 gboolean multiline, 584 gboolean multiline, gboolean masked,
585 const char *ok_text, GCallback ok_cb, 585 const char *ok_text, GCallback ok_cb,
586 const char *cancel_text, GCallback cancel_cb, 586 const char *cancel_text, GCallback cancel_cb,
587 void *user_data) 587 void *user_data)
588 { 588 {
589 GaimRequestUiOps *ops; 589 GaimRequestUiOps *ops;
599 599
600 info = g_new0(GaimRequestInfo, 1); 600 info = g_new0(GaimRequestInfo, 1);
601 info->type = GAIM_REQUEST_INPUT; 601 info->type = GAIM_REQUEST_INPUT;
602 info->handle = handle; 602 info->handle = handle;
603 info->ui_handle = ops->request_input(title, primary, secondary, 603 info->ui_handle = ops->request_input(title, primary, secondary,
604 default_value, multiline, 604 default_value,
605 multiline, masked,
605 ok_text, ok_cb, 606 ok_text, ok_cb,
606 cancel_text, cancel_cb, 607 cancel_text, cancel_cb,
607 user_data); 608 user_data);
608 609
609 handles = g_list_append(handles, info); 610 handles = g_list_append(handles, info);