Mercurial > pidgin.yaz
diff libgaim/util.h @ 15144:b81e4e44b509
[gaim-migrate @ 17929]
User Info and Tooltips now use the GaimNotifyUserInfo object and methods defined in notify.h. GaimNotifyUserInfo objects encapsulate a list of GaimNotifyUserInfoEntry objects, each of which may have a label, a value, and be specified to be a section header.
This moves the burden of UI generation of user information from the various prpls to the UI. The UI can choose how to display the information rather than being fenced into a particular HTML formatting. Consistency across the prpls' information presentation is now enforced, as well. gaim_notify_user_info_get_text_with_newline() generates text in the:
<b>label</b>: value
<b>label</b>: value
format as was passed by convention from prpls in the past.
committer: Tailor Script <tailor@pidgin.im>
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sun, 10 Dec 2006 02:53:09 +0000 |
parents | e0a93e6fa98b |
children |
line wrap: on
line diff
--- a/libgaim/util.h Sat Dec 09 20:20:17 2006 +0000 +++ b/libgaim/util.h Sun Dec 10 02:53:09 2006 +0000 @@ -365,8 +365,8 @@ * * @param str The string to parse. * @param len The size of str. - * @param dest The destination GString to append the new - * field info to. + * @param user_info The destination GaimNotifyUserInfo to which the new + * field info should be added. * @param start_token The beginning token. * @param skip The number of characters to skip after the * start token. @@ -380,7 +380,7 @@ * * @return TRUE if successful, or FALSE otherwise. */ -gboolean gaim_markup_extract_info_field(const char *str, int len, GString *dest, +gboolean gaim_markup_extract_info_field(const char *str, int len, GaimNotifyUserInfo *user_info, const char *start_token, int skip, const char *end_token, char check_value, const char *no_value_token,