Mercurial > pidgin.yaz
diff src/request.h @ 8843:1bbe99a07e36
[gaim-migrate @ 9610]
Pekka Riikonen has provided us with a nice file selector request API.
This is it.
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Fri, 30 Apr 2004 03:00:05 +0000 |
parents | 92cbf9713795 |
children | b540c735a6ad |
line wrap: on
line diff
--- a/src/request.h Thu Apr 29 02:42:31 2004 +0000 +++ b/src/request.h Fri Apr 30 03:00:05 2004 +0000 @@ -191,8 +191,10 @@ const char *cancel_text, GCallback cancel_cb, void *user_data); + void *(*request_file)(const char *title, const char *filename, + GCallback ok_cb, GCallback cancel_cb, + void *user_data); void (*close_request)(GaimRequestType type, void *ui_handle); - } GaimRequestUiOps; typedef void (*GaimRequestInputCb)(void *, const char *); @@ -1251,6 +1253,24 @@ /*@}*/ +/** + * Displays file selector request dialog. Returns the selected filename into + * the callback. + * + * @param handle The plugin or connection handle. + * @param title The title for the dialog (may be NULL) + * @param filename The default filename (may be NULL) + * @param ok_cb The callback for the OK button. + * @param cancel_cb The callback for the cancel button. + * @param user_data The data to pass to the callback. + * + * @return A UI-specific handle. + */ +void *gaim_request_file(void *handle, const char *title, const char *filename, + GCallback ok_cb, GCallback cancel_cb, + void *user_data); + + /**************************************************************************/ /** @name UI Operations API */ /**************************************************************************/