From: Gary K. <amc...@us...> - 2005-01-09 10:00:23
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21860/src Modified Files: bnet.c buddy.c buddy.h Log Message: Added the emblem handler, only shows offline right now. Do we want to eventually show an icon of the game that they might be in? Index: bnet.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/bnet.c,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** bnet.c 9 Jan 2005 09:47:54 -0000 1.25 --- bnet.c 9 Jan 2005 09:59:59 -0000 1.26 *************** *** 95,99 **** NO_BUDDY_ICONS, /* icon_spec */ bnet_icon, /* list_icon */ ! NULL, /* list_emblems */ NULL, /* status_text */ NULL, /* tooltip_text */ --- 95,99 ---- NO_BUDDY_ICONS, /* icon_spec */ bnet_icon, /* list_icon */ ! bnet_buddy_emblems, /* list_emblems */ NULL, /* status_text */ NULL, /* tooltip_text */ Index: buddy.h =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/buddy.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** buddy.h 9 Jan 2005 09:47:54 -0000 1.5 --- buddy.h 9 Jan 2005 09:59:59 -0000 1.6 *************** *** 62,65 **** --- 62,66 ---- void bnet_buddy_add_default(BNetConn *conn, const gchar *name); void bnet_buddy_remove(GaimConnection *gc, GaimBuddy *buddy, GaimGroup *group); + void bnet_buddy_emblems(GaimBuddy *buddy, char **se, char **sw, char **nw, char **ne); /* Buddies API */ Index: buddy.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/buddy.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** buddy.c 9 Jan 2005 09:47:54 -0000 1.6 --- buddy.c 9 Jan 2005 09:59:59 -0000 1.7 *************** *** 163,166 **** --- 163,172 ---- } + void + bnet_buddy_emblems(GaimBuddy *b, char **se, char **sw, char **nw, char **ne) { + if(b->present == GAIM_BUDDY_OFFLINE) + *se = "offline"; + } + /****************************************************************************** * Buddies API |