comparison 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
comparison
equal deleted inserted replaced
4927:afffba7c292e 4928:36c06909823e
897 } 897 }
898 } 898 }
899 899
900 900
901 /* Idle grey buddies affects the whole row. This converts the status icon to greyscale. */ 901 /* Idle grey buddies affects the whole row. This converts the status icon to greyscale. */
902 if ((b->idle && blist_options & OPT_BLIST_GREY_IDLERS) || gtkblist->editmode) 902 if (!b->present && gtkblist->editmode)
903 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0, FALSE); 903 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.0, FALSE);
904 else if (b->idle && blist_options & OPT_BLIST_GREY_IDLERS)
905 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.25, FALSE);
904 return scale; 906 return scale;
905 } 907 }
906 908
907 static GdkPixbuf *gaim_gtk_blist_get_buddy_icon(struct buddy *b) 909 static GdkPixbuf *gaim_gtk_blist_get_buddy_icon(struct buddy *b)
908 { 910 {
919 buf = gdk_pixbuf_new_from_file(file, NULL); 921 buf = gdk_pixbuf_new_from_file(file, NULL);
920 g_free(file); 922 g_free(file);
921 923
922 924
923 if (buf) { 925 if (buf) {
924 if ((b->idle && blist_options & OPT_BLIST_GREY_IDLERS) || gtkblist->editmode) { 926 if (!b->present && gtkblist->editmode)
925 gdk_pixbuf_saturate_and_pixelate(buf, buf, 0, FALSE); 927 gdk_pixbuf_saturate_and_pixelate(buf, buf, 0.0, FALSE);
926 } 928 if (b->idle && blist_options & OPT_BLIST_GREY_IDLERS)
929 gdk_pixbuf_saturate_and_pixelate(buf, buf, 0.25, FALSE);
930
927 ret = gdk_pixbuf_scale_simple(buf,30,30, GDK_INTERP_BILINEAR); 931 ret = gdk_pixbuf_scale_simple(buf,30,30, GDK_INTERP_BILINEAR);
928 g_object_unref(G_OBJECT(buf)); 932 g_object_unref(G_OBJECT(buf));
929 return ret; 933 return ret;
930 } 934 }
931 return NULL; 935 return NULL;