Mercurial > pidgin
diff libpurple/protocols/novell/novell.c @ 15462:0b6f337a46d5
Emblems in the blist
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 30 Jan 2007 06:53:23 +0000 |
parents | 5fe8042783c1 |
children | 32c366eeeb99 |
line wrap: on
line diff
--- a/libpurple/protocols/novell/novell.c Tue Jan 30 05:27:44 2007 +0000 +++ b/libpurple/protocols/novell/novell.c Tue Jan 30 06:53:23 2007 +0000 @@ -2783,40 +2783,6 @@ } } -static void -novell_list_emblems(GaimBuddy * buddy, const char **se, const char **sw, const char **nw, const char **ne) -{ - NMUserRecord *user_record = NULL; - GaimConnection *gc; - NMUser *user; - int status = 0; - - gc = gaim_account_get_connection(buddy->account); - - if (gc == NULL || (user = gc->proto_data) == NULL) - return; - - user_record = nm_find_user_record(user, buddy->name); - - if (user_record) - status = nm_user_record_get_status(user_record); - - switch (status) { - case NM_STATUS_AVAILABLE: - *se = ""; - break; - case NM_STATUS_AWAY: - *se = "away"; - break; - case NM_STATUS_BUSY: - *se = "occupied"; - break; - case NM_STATUS_UNKNOWN: - *se = "error"; - break; - } -} - static const char * novell_list_icon(GaimAccount * account, GaimBuddy * buddy) { @@ -3472,7 +3438,7 @@ NULL, /* protocol_options */ NO_BUDDY_ICONS, /* icon_spec */ novell_list_icon, /* list_icon */ - novell_list_emblems, /* list_emblems */ + NULL, /* list_emblems */ novell_status_text, /* status_text */ novell_tooltip_text, /* tooltip_text */ novell_status_types, /* status_types */