| 778 static void |
778 static void |
| 779 pidgin_account_editor_save_user_options(PidginAccountEditor *editor) { |
779 pidgin_account_editor_save_user_options(PidginAccountEditor *editor) { |
| 780 const gchar *svalue = NULL; |
780 const gchar *svalue = NULL; |
| 781 gboolean bvalue = FALSE; |
781 gboolean bvalue = FALSE; |
| 782 |
782 |
| |
783 purple_account_freeze_notify_settings(editor->account); |
| |
784 |
| 783 /* Set the alias. */ |
785 /* Set the alias. */ |
| 784 svalue = gtk_editable_get_text(GTK_EDITABLE(editor->alias)); |
786 svalue = gtk_editable_get_text(GTK_EDITABLE(editor->alias)); |
| 785 if(*svalue == '\0') { |
787 if(*svalue == '\0') { |
| 786 svalue = NULL; |
788 svalue = NULL; |
| 787 } |
789 } |
| 798 purple_buddy_icons_set_account_icon(editor->account, NULL, 0); |
800 purple_buddy_icons_set_account_icon(editor->account, NULL, 0); |
| 799 } |
801 } |
| 800 } else { |
802 } else { |
| 801 # warning set the global buddy icon when buddy icons do not suck so bad. |
803 # warning set the global buddy icon when buddy icons do not suck so bad. |
| 802 } |
804 } |
| |
805 |
| |
806 purple_account_thaw_notify_settings(editor->account); |
| 803 } |
807 } |
| 804 |
808 |
| 805 static void |
809 static void |
| 806 pidgin_account_editor_save_advanced_options(PidginAccountEditor *editor) { |
810 pidgin_account_editor_save_advanced_options(PidginAccountEditor *editor) { |
| |
811 purple_account_freeze_notify_settings(editor->account); |
| |
812 |
| 807 for(GList *l = editor->advanced_entries; l != NULL; l = l->next) { |
813 for(GList *l = editor->advanced_entries; l != NULL; l = l->next) { |
| 808 GtkWidget *widget = l->data; |
814 GtkWidget *widget = l->data; |
| 809 PurpleAccountOption *option = NULL; |
815 PurpleAccountOption *option = NULL; |
| 810 GList *keys = NULL; |
816 GList *keys = NULL; |
| 811 const gchar *setting = NULL; |
817 const gchar *setting = NULL; |