comparison src/blist.c @ 9324:af707cc1e229

[gaim-migrate @ 10132] Now when your buddies unset their icon, you'll no longer see it. Well on Yahoo! anyway, I doubt OSCAR actually ever tells the core when a buddy unsets his icon, since Chip just added the ability to do that a couple days ago. The caching needs to be fixed up, the file itself is never removed. I made gtkblist use GtkPixbufLoader, which i'm worried about because gtkconv has a comment about that leaking. The GaimBuddyIcon's end up being loaded from gtkblist.c, which is wrong, I think. However, they were previously not being created at all I think, except for new icons. So basicly, gtkconv and gtkblist use GaimBuddyIcon instead of loading the icon straight into a GdkPixap or whatever from the file. gtkblist will still read the file if it can't find a GaimBuddyIcon, but it creates one from the file, instead of just using the file. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 20 Jun 2004 06:57:54 +0000
parents 635f88dc9adf
children eae7e049d639
comparison
equal deleted inserted replaced
9323:59bca4e8678c 9324:af707cc1e229
648 gaim_buddy_icon_unref(buddy->icon); 648 gaim_buddy_icon_unref(buddy->icon);
649 649
650 buddy->icon = (icon == NULL ? NULL : gaim_buddy_icon_ref(icon)); 650 buddy->icon = (icon == NULL ? NULL : gaim_buddy_icon_ref(icon));
651 } 651 }
652 652
653 gaim_buddy_icon_cache(icon, buddy); 653 if (buddy->icon)
654 gaim_buddy_icon_cache(icon, buddy);
655 else
656 gaim_blist_node_remove_setting((GaimBlistNode *)buddy, "buddy_icon");
654 657
655 schedule_blist_save(); 658 schedule_blist_save();
656 659
657 gaim_blist_update_buddy_icon(buddy); 660 gaim_blist_update_buddy_icon(buddy);
658 } 661 }