Mercurial > pidgin.yaz
diff src/protocols/gg/gg.c @ 4916:d9b6b5ae34e4
[gaim-migrate @ 5250]
Buddy list editing.
Does this work? I don't know; I don't test things. It compiles though.
It probably does work though, because I'm perfect.
So, see, I did really terribly in school last semester (really terribly--
like, why didn't they kick me out terribly) and so I'm working really hard
to do well this semester (and I am so far :)). Anyway, that's why you may
have noticed I'm a bit slow with the development of late. In fact, I would
test and fix this stuff up, but I really need to work on an English paper,
so I figured it'd be best just to commit it as is and let Rob, Nathan, Chip
and the boys work out the kinks. Besides, I've had most of this code written
for weeks already.
Thank you all for your patience.
Oh, so there's now an Edit menu on your buddy list (which makes the minimum
buddy list width wider :-D) and here you'll find things with which to edit
your list and privacy, prefs and accounts. It should all be real intuitive.
Feel free to IM me if you want to talk about my paper.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 31 Mar 2003 07:19:46 +0000 |
parents | 677d3cb193a1 |
children | b37d7d09ec83 |
line wrap: on
line diff
--- a/src/protocols/gg/gg.c Mon Mar 31 02:38:44 2003 +0000 +++ b/src/protocols/gg/gg.c Mon Mar 31 07:19:46 2003 +0000 @@ -1,6 +1,6 @@ /* * gaim - Gadu-Gadu Protocol Plugin - * $Id: gg.c 5113 2003-03-16 00:01:49Z faceprint $ + * $Id: gg.c 5250 2003-03-31 07:19:46Z seanegan $ * * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> * @@ -1247,22 +1247,25 @@ { return "gadu-gadu"; } -#if 0 - guint status; - if (uc == UC_UNAVAILABLE) - return (char **)gg_sunred_xpm; - status = uc >> 5; - /* Drop all masks */ - status &= ~(GG_STATUS_FRIENDS_MASK); - if (status == GG_STATUS_AVAIL) - return (char **)gg_sunyellow_xpm; - if (status == GG_STATUS_BUSY) - return (char **)gg_suncloud_xpm; - if (status == GG_STATUS_INVISIBLE) - return (char **)gg_sunwhitered_xpm; - return (char **)gg_sunyellow_xpm; + +static void agg_list_emblems(struct buddy *b, char **se, char **sw, char **nw, char **ne) +{ + int status; + if (b->present == 0) + *se = "offline"; + else if (b->uc == UC_UNAVAILABLE) + *se = "away"; + else { + status = b->uc >> 5; + /* Drop all masks */ + status &= ~(GG_STATUS_FRIENDS_MASK); + if (status == GG_STATUS_BUSY) + *se = "busy"; + else if (status == GG_STATUS_INVISIBLE) + *se = "invisiible"; + } } -#endif + static void agg_set_permit_deny_dummy(struct gaim_connection *gc) { @@ -1283,6 +1286,7 @@ ret->options = 0; ret->name = g_strdup("Gadu-Gadu"); ret->list_icon = agg_list_icon; + ret->list_emblems = agg_list_emblems; ret->away_states = agg_away_states; ret->actions = agg_actions; ret->buddy_menu = agg_buddy_menu;