| 816 bvalue = gtk_switch_get_active(GTK_SWITCH(editor->use_custom_avatar)); |
816 bvalue = gtk_switch_get_active(GTK_SWITCH(editor->use_custom_avatar)); |
| 817 purple_account_set_bool(editor->account, "use-global-buddyicon", !bvalue); |
817 purple_account_set_bool(editor->account, "use-global-buddyicon", !bvalue); |
| 818 |
818 |
| 819 if(bvalue) { |
819 if(bvalue) { |
| 820 if(GDK_IS_PIXBUF(editor->avatar_pixbuf)) { |
820 if(GDK_IS_PIXBUF(editor->avatar_pixbuf)) { |
| 821 # warning implement this when buddy icons do not suck so bad. |
821 #pragma message("implement this when buddy icons do not suck so bad.") |
| 822 } else { |
822 } else { |
| 823 purple_buddy_icons_set_account_icon(editor->account, NULL, 0); |
823 purple_buddy_icons_set_account_icon(editor->account, NULL, 0); |
| 824 } |
824 } |
| 825 } else { |
825 } else { |
| 826 # warning set the global buddy icon when buddy icons do not suck so bad. |
826 #pragma message("set the global buddy icon when buddy icons do not suck so bad.") |
| 827 } |
827 } |
| 828 |
828 |
| 829 purple_account_thaw_notify_settings(editor->account); |
829 purple_account_thaw_notify_settings(editor->account); |
| 830 } |
830 } |
| 831 |
831 |