Mercurial > pidgin.yaz
changeset 4928:36c06909823e
[gaim-migrate @ 5262]
the world is a colorful place, and now, so is the buddy list.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 31 Mar 2003 22:40:56 +0000 |
parents | afffba7c292e |
children | 8a20332821b6 |
files | src/buddy.c |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy.c Mon Mar 31 21:53:35 2003 +0000 +++ b/src/buddy.c Mon Mar 31 22:40:56 2003 +0000 @@ -899,8 +899,10 @@ /* Idle grey buddies affects the whole row. This converts the status icon to greyscale. */ - if ((b->idle && blist_options & OPT_BLIST_GREY_IDLERS) || gtkblist->editmode) - gdk_pixbuf_saturate_and_pixelate(scale, scale, 0, FALSE); + if (!b->present && gtkblist->editmode) + gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.0, FALSE); + else if (b->idle && blist_options & OPT_BLIST_GREY_IDLERS) + gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.25, FALSE); return scale; } @@ -921,9 +923,11 @@ if (buf) { - if ((b->idle && blist_options & OPT_BLIST_GREY_IDLERS) || gtkblist->editmode) { - gdk_pixbuf_saturate_and_pixelate(buf, buf, 0, FALSE); - } + if (!b->present && gtkblist->editmode) + gdk_pixbuf_saturate_and_pixelate(buf, buf, 0.0, FALSE); + if (b->idle && blist_options & OPT_BLIST_GREY_IDLERS) + gdk_pixbuf_saturate_and_pixelate(buf, buf, 0.25, FALSE); + ret = gdk_pixbuf_scale_simple(buf,30,30, GDK_INTERP_BILINEAR); g_object_unref(G_OBJECT(buf)); return ret;