pidgin/pidginaccounteditor.c

changeset 41946
0fb3b0e7122f
parent 41928
ab75bc798d3a
child 41962
f802660eaef2
equal deleted inserted replaced
41945:fd826d652e7d 41946:0fb3b0e7122f
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;
839 break; 845 break;
840 default: 846 default:
841 break; 847 break;
842 } 848 }
843 } 849 }
850
851 purple_account_thaw_notify_settings(editor->account);
844 } 852 }
845 853
846 static void 854 static void
847 pidgin_account_editor_save_proxy(PidginAccountEditor *editor, 855 pidgin_account_editor_save_proxy(PidginAccountEditor *editor,
848 gboolean new_account) 856 gboolean new_account)

mercurial