| 1988 buddyicon = g_object_ref(G_OBJECT(global_buddyicon)); |
1988 buddyicon = g_object_ref(G_OBJECT(global_buddyicon)); |
| 1989 else { |
1989 else { |
| 1990 /* This is for when set_account() is called for a single account */ |
1990 /* This is for when set_account() is called for a single account */ |
| 1991 const char *path; |
1991 const char *path; |
| 1992 path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon"); |
1992 path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon"); |
| 1993 if (path != NULL) |
1993 if ((path != NULL) && (*path != '\0')) { |
| 1994 img = purple_imgstore_new_from_file(path); |
1994 img = purple_imgstore_new_from_file(path); |
| |
1995 } |
| 1995 } |
1996 } |
| 1996 } else { |
1997 } else { |
| 1997 img = purple_buddy_icons_find_account_icon(account); |
1998 img = purple_buddy_icons_find_account_icon(account); |
| 1998 } |
1999 } |
| 1999 } |
2000 } |