Mercurial > pidgin
comparison libpurple/protocols/mxit/profile.c @ 31086:a8cc50c2279f
Remove trailing whitespace
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 04 Jan 2011 06:55:30 +0000 |
parents | 65b97f3cdd01 |
children | 02b510d2d014 |
comparison
equal
deleted
inserted
replaced
31085:44f53d3fc54f | 31086:a8cc50c2279f |
---|---|
105 * | 105 * |
106 * @param msecs The timestamps (milliseconds since epoch) | 106 * @param msecs The timestamps (milliseconds since epoch) |
107 * @return Date & Time in a display'able format. | 107 * @return Date & Time in a display'able format. |
108 */ | 108 */ |
109 static const char* datetime( gint64 msecs ) | 109 static const char* datetime( gint64 msecs ) |
110 { | 110 { |
111 time_t secs = msecs / 1000; | 111 time_t secs = msecs / 1000; |
112 | 112 |
113 struct tm t; | 113 struct tm t; |
114 localtime_r( &secs, &t ); | 114 localtime_r( &secs, &t ); |
115 | 115 |
158 /* last online */ | 158 /* last online */ |
159 if ( contact->presence == MXIT_PRESENCE_OFFLINE ) | 159 if ( contact->presence == MXIT_PRESENCE_OFFLINE ) |
160 purple_notify_user_info_add_pair( info, _( "Last Online" ), ( profile->lastonline == 0 ) ? _( "Unknown" ) : datetime( profile->lastonline ) ); | 160 purple_notify_user_info_add_pair( info, _( "Last Online" ), ( profile->lastonline == 0 ) ? _( "Unknown" ) : datetime( profile->lastonline ) ); |
161 | 161 |
162 /* mood */ | 162 /* mood */ |
163 if ( contact->mood != MXIT_MOOD_NONE ) | 163 if ( contact->mood != MXIT_MOOD_NONE ) |
164 purple_notify_user_info_add_pair( info, _( "Mood" ), mxit_convert_mood_to_name( contact->mood ) ); | 164 purple_notify_user_info_add_pair( info, _( "Mood" ), mxit_convert_mood_to_name( contact->mood ) ); |
165 else | 165 else |
166 purple_notify_user_info_add_pair( info, _( "Mood" ), _( "None" ) ); | 166 purple_notify_user_info_add_pair( info, _( "Mood" ), _( "None" ) ); |
167 | 167 |
168 /* status message */ | 168 /* status message */ |