pidgin.mxit: 6ce75aab: Also show FirstName and LastName in sear...
andrew.victor at mxit.com
andrew.victor at mxit.com
Sun May 15 16:45:57 EDT 2011
----------------------------------------------------------------------
Revision: 6ce75aab2d77a0e2a880e02434ed6b41eb2f9885
Parent: 10b0e5864c64f6998b38b83e74af0cbb63e7be1f
Author: andrew.victor at mxit.com
Date: 05/15/11 16:27:51
Branch: im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/6ce75aab2d77a0e2a880e02434ed6b41eb2f9885
Changelog:
Also show FirstName and LastName in search-results and friend-suggestions.
(These are not a new strings, since they already exist in the file).
Changes against parent 10b0e5864c64f6998b38b83e74af0cbb63e7be1f
patched libpurple/protocols/mxit/profile.c
patched libpurple/protocols/mxit/protocol.c
-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/profile.c b78f9a22d0f8295671783244cc6bcfaaf2a54783
+++ libpurple/protocols/mxit/profile.c f296fc8694bf5c154d6b9375d3b9d1a07e13051b
@@ -282,6 +282,10 @@ void mxit_show_search_results( struct MX
purple_notify_searchresults_column_add( results, column );
column = purple_notify_searchresults_column_new( _( "Display Name" ) );
purple_notify_searchresults_column_add( results, column );
+ column = purple_notify_searchresults_column_new( _( "First Name" ) );
+ purple_notify_searchresults_column_add( results, column );
+ column = purple_notify_searchresults_column_new( _( "Last Name" ) );
+ purple_notify_searchresults_column_add( results, column );
column = purple_notify_searchresults_column_new( _( "Gender" ) );
purple_notify_searchresults_column_add( results, column );
column = purple_notify_searchresults_column_new( _( "Age" ) );
@@ -297,6 +301,8 @@ void mxit_show_search_results( struct MX
/* column values */
row = g_list_append( NULL, g_strdup_printf( "#%s", tmp ) );
row = g_list_append( row, g_strdup( profile->nickname ) );
+ row = g_list_append( row, g_strdup( profile->firstname ) );
+ row = g_list_append( row, g_strdup( profile->lastname ) );
row = g_list_append( row, g_strdup( profile->male ? "Male" : "Female" ) );
row = g_list_append( row, g_strdup_printf( "%i", calculateAge( profile->birthday ) ) );
row = g_list_append( row, g_strdup( profile->whereami ) );
============================================================
--- libpurple/protocols/mxit/protocol.c e1b0be6e8edd7fa6f593f86c3297470307f90df0
+++ libpurple/protocols/mxit/protocol.c 488f7c91b60c6d7304b3476e5f0ef7cf50a17bfc
@@ -1986,6 +1986,14 @@ static void mxit_parse_cmd_suggestcontac
/* birthdate */
g_strlcpy( profile->birthday, fvalue, sizeof( profile->birthday ) );
}
+ else if ( strcmp( CP_PROFILE_FIRSTNAME, fname ) == 0 ) {
+ /* first name */
+ g_strlcpy( profile->firstname, fvalue, sizeof( profile->firstname ) );
+ }
+ else if ( strcmp( CP_PROFILE_LASTNAME, fname ) == 0 ) {
+ /* last name */
+ g_strlcpy( profile->lastname, fvalue, sizeof( profile->lastname ) );
+ }
else if ( strcmp( CP_PROFILE_GENDER, fname ) == 0 ) {
/* gender */
profile->male = ( fvalue[0] == '1' );
More information about the Commits
mailing list