comparison src/buddyicon.c @ 9801:7aa5a20519ee

[gaim-migrate @ 10669] On Fri, 2004-08-20 at 23:57, Tim Ringenbach wrote: > > relative buddy icon paths instead of absolute ones from nosnilmot. this > > should save some headaches migrating a ~/.gaim around > I think you broke something here. On start up I notice all buddy icons > are fetched again, and they only show up in my buddy list, never my > conversation window. I did break something. I think the logic of "if the old file doesn't exist, then delete the new one instead" when removing old icons isn't exactly what I meant to do. You were also correct to point out that prpls might use them directly - oscar does. Patch attached to fix both cases. Regards, Stu. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 21 Aug 2004 15:05:45 +0000
parents e0060f3b6d92
children a66cf83552dc
comparison
equal deleted inserted replaced
9800:cc68a8c6e741 9801:7aa5a20519ee
244 if (old_icon != NULL) 244 if (old_icon != NULL)
245 { 245 {
246 if(!stat(old_icon, &st)) 246 if(!stat(old_icon, &st))
247 unlink(old_icon); 247 unlink(old_icon);
248 else { 248 else {
249 filename = g_build_filename(dirname, random, NULL); 249 filename = g_build_filename(dirname, old_icon, NULL);
250 if(!stat(filename, &st)) 250 if(!stat(filename, &st))
251 unlink(filename); 251 unlink(filename);
252 g_free(filename); 252 g_free(filename);
253 } 253 }
254 } 254 }