Mercurial > pidgin
changeset 31511:7119b2c43637
Improve searching.
author | andrew.victor@mxit.com |
---|---|
date | Mon, 18 Apr 2011 19:38:21 +0000 |
parents | eb927f960c14 |
children | 6b59dd656fee |
files | libpurple/protocols/mxit/actions.c libpurple/protocols/mxit/mxit.h |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/actions.c Tue Apr 12 22:01:54 2011 +0000 +++ b/libpurple/protocols/mxit/actions.c Mon Apr 18 19:38:21 2011 +0000 @@ -442,9 +442,10 @@ struct MXitSession* session = (struct MXitSession*) gc->proto_data; const char* profilelist[] = { CP_PROFILE_BIRTHDATE, CP_PROFILE_GENDER, CP_PROFILE_FULLNAME, CP_PROFILE_FIRSTNAME, - CP_PROFILE_LASTNAME, CP_PROFILE_REGCOUNTRY, CP_PROFILE_STATUS, CP_PROFILE_AVATAR }; + CP_PROFILE_LASTNAME, CP_PROFILE_REGCOUNTRY, CP_PROFILE_STATUS, CP_PROFILE_AVATAR, + CP_PROFILE_WHEREAMI, CP_PROFILE_ABOUTME }; - mxit_send_suggest_friends( session, 20, ARRAY_SIZE( profilelist ), profilelist ); + mxit_send_suggest_friends( session, MXIT_SEARCHRESULTS_MAX, ARRAY_SIZE( profilelist ), profilelist ); } @@ -458,9 +459,10 @@ struct MXitSession* session = (struct MXitSession*) gc->proto_data; const char* profilelist[] = { CP_PROFILE_BIRTHDATE, CP_PROFILE_GENDER, CP_PROFILE_FULLNAME, CP_PROFILE_FIRSTNAME, - CP_PROFILE_LASTNAME, CP_PROFILE_REGCOUNTRY, CP_PROFILE_STATUS, CP_PROFILE_AVATAR }; + CP_PROFILE_LASTNAME, CP_PROFILE_REGCOUNTRY, CP_PROFILE_STATUS, CP_PROFILE_AVATAR, + CP_PROFILE_WHEREAMI, CP_PROFILE_ABOUTME }; - mxit_send_suggest_search( session, 20, input, ARRAY_SIZE( profilelist ), profilelist ); + mxit_send_suggest_search( session, MXIT_SEARCHRESULTS_MAX, input, ARRAY_SIZE( profilelist ), profilelist ); }
--- a/libpurple/protocols/mxit/mxit.h Tue Apr 12 22:01:54 2011 +0000 +++ b/libpurple/protocols/mxit/mxit.h Mon Apr 18 19:38:21 2011 +0000 @@ -107,6 +107,10 @@ #define MXIT_FLAG_FIRSTROSTER 0x04 /* set to true once the first roster update has been received and processed */ +/* Maximum number of search results */ +#define MXIT_SEARCHRESULTS_MAX 30 + + /* define this to enable the link clicking support */ #define MXIT_LINK_CLICK