src/protocols/toc/toc.c

changeset 4916
11b8fd3f8ffc
parent 4834
80bc171a5236
child 4921
3021bf6fa84e
equal deleted inserted replaced
4915:9e39899447b8 4916:11b8fd3f8ffc
1280 1280
1281 static const char *toc_list_icon(struct gaim_account *a, struct buddy *b) 1281 static const char *toc_list_icon(struct gaim_account *a, struct buddy *b)
1282 { 1282 {
1283 return "aim"; 1283 return "aim";
1284 } 1284 }
1285 /* 1285
1286 if (uc & UC_UNAVAILABLE) 1286 static void oscar_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne)
1287 return (char **)away_icon_xpm; 1287 {
1288 if (uc & UC_AOL) 1288 char *emblems[4] = {NULL,NULL,NULL,NULL};
1289 return (char **)aol_icon_xpm; 1289 int i = 0;
1290 if (uc & UC_NORMAL) 1290
1291 return (char **)free_icon_xpm; 1291 if (b->present == 0) {
1292 if (uc & UC_ADMIN) 1292 *se = "offline";
1293 return (char **)admin_icon_xpm; 1293 return;
1294 if (uc & UC_UNCONFIRMED) 1294 } else {
1295 return (char **)dt_icon_xpm; 1295 if (b->uc & UC_UNAVAILABLE)
1296 if (uc & UC_WIRELESS) 1296 emblems[i++] = "away";
1297 return (char **)wireless_icon_xpm; 1297 if (b->uc & UC_AOL)
1298 return NULL; 1298 emblems[i++] = "aol";
1299 }*/ 1299 if (b->uc & UC_ADMIN)
1300 emblems[i++] = "admin";
1301 if (b->uc & UC_WIRELESS)
1302 emblems[i++] = "wireless";
1303 }
1304 *se = emblems[0];
1305 *sw = emblems[1];
1306 *nw = emblems[2];
1307 *ne = emblems[3];
1308 }
1300 1309
1301 static GList *toc_buddy_menu(struct gaim_connection *gc, char *who) 1310 static GList *toc_buddy_menu(struct gaim_connection *gc, char *who)
1302 { 1311 {
1303 GList *m = NULL; 1312 GList *m = NULL;
1304 struct proto_buddy_menu *pbm; 1313 struct proto_buddy_menu *pbm;

mercurial