Mercurial > pidgin.yaz
comparison libpurple/buddyicon.c @ 16482:3be560001d26
Kill some compiler warnings and TODOs of mine.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 25 Apr 2007 23:29:46 +0000 |
parents | 24bbd7e46bfe |
children | 1d1ddf972ac8 |
comparison
equal
deleted
inserted
replaced
16481:6f197c81d478 | 16482:3be560001d26 |
---|---|
441 | 441 |
442 old_img = icon->img; | 442 old_img = icon->img; |
443 icon->img = NULL; | 443 icon->img = NULL; |
444 | 444 |
445 if (data != NULL) | 445 if (data != NULL) |
446 { | |
446 if (len > 0) | 447 if (len > 0) |
447 icon->img = purple_buddy_icon_data_new(data, len, NULL); | 448 icon->img = purple_buddy_icon_data_new(data, len, NULL); |
448 else | 449 else |
449 g_free(data); | 450 g_free(data); |
451 } | |
450 | 452 |
451 icon->checksum = g_strdup(checksum); | 453 icon->checksum = g_strdup(checksum); |
452 | 454 |
453 purple_buddy_icon_update(icon); | 455 purple_buddy_icon_update(icon); |
454 | 456 |
694 purple_account_set_string(account, "buddy_icon", filename); | 696 purple_account_set_string(account, "buddy_icon", filename); |
695 ref_filename(filename); | 697 ref_filename(filename); |
696 } | 698 } |
697 else | 699 else |
698 { | 700 { |
699 // TODO | 701 purple_account_set_string(account, "buddy_icon", NULL); |
700 // purple_account_remove_setting(account, "buddy_icon"); | |
701 } | 702 } |
702 unref_filename(old_icon); | 703 unref_filename(old_icon); |
703 | 704 |
704 if (img) | 705 if (img) |
705 g_hash_table_insert(pointer_icon_cache, account, img); | 706 g_hash_table_insert(pointer_icon_cache, account, img); |
961 void | 962 void |
962 purple_buddy_icons_blist_loaded_cb() | 963 purple_buddy_icons_blist_loaded_cb() |
963 { | 964 { |
964 PurpleBlistNode *node = purple_blist_get_root(); | 965 PurpleBlistNode *node = purple_blist_get_root(); |
965 const char *dirname = purple_buddy_icons_get_cache_dir(); | 966 const char *dirname = purple_buddy_icons_get_cache_dir(); |
966 | |
967 // TODO: TEMP | |
968 //old_icons_dir = g_strdup("/home/rlaager/.gaim/icons"); | |
969 | 967 |
970 /* Doing this once here saves having to check it inside a loop. */ | 968 /* Doing this once here saves having to check it inside a loop. */ |
971 if (old_icons_dir != NULL) | 969 if (old_icons_dir != NULL) |
972 { | 970 { |
973 if (!g_file_test(dirname, G_FILE_TEST_IS_DIR)) | 971 if (!g_file_test(dirname, G_FILE_TEST_IS_DIR)) |