| 924 { |
924 { |
| 925 if (filename) { |
925 if (filename) { |
| 926 GList *accounts; |
926 GList *accounts; |
| 927 for (accounts = gaim_accounts_get_all(); accounts != NULL; accounts = accounts->next) { |
927 for (accounts = gaim_accounts_get_all(); accounts != NULL; accounts = accounts->next) { |
| 928 GaimAccount *account = accounts->data; |
928 GaimAccount *account = accounts->data; |
| 929 if (gaim_account_get_ui_bool(account, GAIM_GTK_UI, "use-global-buddy-icon", TRUE)) { |
929 if (gaim_account_get_ui_bool(account, GAIM_GTK_UI, "use-global-buddy-icon", TRUE) && |
| |
930 GAIM_PLUGIN_PROTOCOL_INFO(gaim_find_prpl(gaim_account_get_protocol_id(account)))->icon_spec.format) { |
| 930 char *icon = gaim_gtk_convert_buddy_icon(gaim_find_prpl(gaim_account_get_protocol_id(account)), |
931 char *icon = gaim_gtk_convert_buddy_icon(gaim_find_prpl(gaim_account_get_protocol_id(account)), |
| 931 filename); |
932 filename); |
| 932 gaim_account_set_buddy_icon(account, icon); |
933 gaim_account_set_buddy_icon(account, icon); |
| 933 g_free(icon); |
934 g_free(icon); |
| 934 } |
935 } |