Mercurial > pidgin.yaz
diff src/request.h @ 10229:9aa0b6d11bbf
[gaim-migrate @ 11364]
This is a heavily warmenhoved patch from Alceste Scalas. Here's what it
changes:
If the user drags an image file into the buddy list or conversation, it
presents three options (when applicable):
Set as buddy icon - sets this image to be the buddy icon for this buddy
Send image file - Initiates a file transfer to send this image.
Insert in message - Inserts in the gtkimhtml for use as an IM image.
If the user drags a .desktop web link, it will insert a hyperlink in the
conversation. All other types of .desktop files fail with an error dialog.
If anyone can think of better ways to handle any of them, let me know.
This also happens to implement gaim_request_choice, which had previously
been unimplemented.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 22 Nov 2004 02:57:34 +0000 |
parents | b13013595c08 |
children | e8d62dc363c5 |
line wrap: on
line diff
--- a/src/request.h Sun Nov 21 20:36:15 2004 +0000 +++ b/src/request.h Mon Nov 22 02:57:34 2004 +0000 @@ -182,8 +182,7 @@ const char *secondary, unsigned int default_value, const char *ok_text, GCallback ok_cb, const char *cancel_text, GCallback cancel_cb, - void *user_data, size_t choice_count, - va_list choices); + void *user_data, va_list choices); void *(*request_action)(const char *title, const char *primary, const char *secondary, unsigned int default_action, void *user_data, size_t action_count, @@ -201,6 +200,7 @@ typedef void (*GaimRequestInputCb)(void *, const char *); typedef void (*GaimRequestActionCb)(void *, int); +typedef void (*GaimRequestChoiceCb)(void *, int); typedef void (*GaimRequestFieldsCb)(void *, GaimRequestFields *fields); typedef void (*GaimRequestFileCb)(void *, const char *filename); @@ -1117,7 +1117,7 @@ unsigned int default_value, const char *ok_text, GCallback ok_cb, const char *cancel_text, GCallback cancel_cb, - void *user_data, size_t choice_count, ...); + void *user_data, ...); /** * Prompts the user for multiple-choice input. @@ -1142,8 +1142,7 @@ unsigned int default_value, const char *ok_text, GCallback ok_cb, const char *cancel_text, GCallback cancel_cb, - void *user_data, size_t choice_count, - va_list choices); + void *user_data, va_list choices); /** * Prompts the user for an action.