Mercurial > pidgin
diff src/buddy.c @ 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 | d947652a0b74 |
children | 8a20332821b6 |
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;