Mercurial > pidgin.yaz
comparison libpurple/protocols/mxit/roster.c @ 30709:d7325448badb
Some spelling fixes to code comments.
author | andrew.victor@mxit.com |
---|---|
date | Fri, 28 May 2010 21:08:49 +0000 |
parents | 085020c013eb |
children | d9e94339ca3b |
comparison
equal
deleted
inserted
replaced
30519:da8c00c5b4e5 | 30709:d7325448badb |
---|---|
42 */ | 42 */ |
43 | 43 |
44 /* statuses (reference: libpurple/status.h) */ | 44 /* statuses (reference: libpurple/status.h) */ |
45 static struct status | 45 static struct status |
46 { | 46 { |
47 PurpleStatusPrimitive primative; | 47 PurpleStatusPrimitive primitive; |
48 int mxit; | 48 int mxit; |
49 const char* id; | 49 const char* id; |
50 const char* name; | 50 const char* name; |
51 } const mxit_statuses[] = { | 51 } const mxit_statuses[] = { |
52 /* primative, no, id, name */ | 52 /* primitive, no, id, name */ |
53 { PURPLE_STATUS_OFFLINE, MXIT_PRESENCE_OFFLINE, "offline", N_( "Offline" ) }, /* 0 */ | 53 { PURPLE_STATUS_OFFLINE, MXIT_PRESENCE_OFFLINE, "offline", N_( "Offline" ) }, /* 0 */ |
54 { PURPLE_STATUS_AVAILABLE, MXIT_PRESENCE_ONLINE, "online", N_( "Available" ) }, /* 1 */ | 54 { PURPLE_STATUS_AVAILABLE, MXIT_PRESENCE_ONLINE, "online", N_( "Available" ) }, /* 1 */ |
55 { PURPLE_STATUS_AWAY, MXIT_PRESENCE_AWAY, "away", N_( "Away" ) }, /* 2 */ | 55 { PURPLE_STATUS_AWAY, MXIT_PRESENCE_AWAY, "away", N_( "Away" ) }, /* 2 */ |
56 { PURPLE_STATUS_AVAILABLE, MXIT_PRESENCE_AVAILABLE, "chat", N_( "Chatty" ) }, /* 3 */ | 56 { PURPLE_STATUS_AVAILABLE, MXIT_PRESENCE_AVAILABLE, "chat", N_( "Chatty" ) }, /* 3 */ |
57 { PURPLE_STATUS_UNAVAILABLE, MXIT_PRESENCE_DND, "dnd", N_( "Do Not Disturb" ) } /* 4 */ | 57 { PURPLE_STATUS_UNAVAILABLE, MXIT_PRESENCE_DND, "dnd", N_( "Do Not Disturb" ) } /* 4 */ |
72 | 72 |
73 for ( i = 0; i < ARRAY_SIZE( mxit_statuses ); i++ ) { | 73 for ( i = 0; i < ARRAY_SIZE( mxit_statuses ); i++ ) { |
74 const struct status* status = &mxit_statuses[i]; | 74 const struct status* status = &mxit_statuses[i]; |
75 | 75 |
76 /* add mxit status (reference: "libpurple/status.h") */ | 76 /* add mxit status (reference: "libpurple/status.h") */ |
77 type = purple_status_type_new_with_attrs( status->primative, status->id, _( status->name ), TRUE, TRUE, FALSE, | 77 type = purple_status_type_new_with_attrs( status->primitive, status->id, _( status->name ), TRUE, TRUE, FALSE, |
78 "message", _( "Message" ), purple_value_new( PURPLE_TYPE_STRING ), | 78 "message", _( "Message" ), purple_value_new( PURPLE_TYPE_STRING ), |
79 NULL ); | 79 NULL ); |
80 | 80 |
81 statuslist = g_list_append( statuslist, type ); | 81 statuslist = g_list_append( statuslist, type ); |
82 } | 82 } |
290 | 290 |
291 /* | 291 /* |
292 * XXX: libPurple does not currently provide an API to change or rename the group name | 292 * XXX: libPurple does not currently provide an API to change or rename the group name |
293 * for a specific buddy. One option is to remove the buddy from the list and re-adding | 293 * for a specific buddy. One option is to remove the buddy from the list and re-adding |
294 * him in the new group, but by doing that makes the buddy go offline and then online | 294 * him in the new group, but by doing that makes the buddy go offline and then online |
295 * again. This is really not ideal and very iretating, but how else then? | 295 * again. This is really not ideal and very irritating, but how else then? |
296 */ | 296 */ |
297 | 297 |
298 /* create new buddy */ | 298 /* create new buddy */ |
299 newbuddy = purple_buddy_new( session->acc, buddy->name, buddy->alias ); | 299 newbuddy = purple_buddy_new( session->acc, buddy->name, buddy->alias ); |
300 newbuddy->proto_data = buddy->proto_data; | 300 newbuddy->proto_data = buddy->proto_data; |