diff src/gtkaccount.c @ 5804:1ba7dbd50d85

[gaim-migrate @ 6234] import really really ancient prefs, and import auto-login settings, and have the auto-login checkbox in the account editor work again. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 07 Jun 2003 20:33:39 +0000
parents 56042e59499a
children bd0d0e89cac3
line wrap: on
line diff
--- a/src/gtkaccount.c	Sat Jun 07 20:16:23 2003 +0000
+++ b/src/gtkaccount.c	Sat Jun 07 20:33:39 2003 +0000
@@ -348,7 +348,8 @@
 				gaim_account_get_remember_password(dialog->account));
 
 		gtk_toggle_button_set_active(
-				GTK_TOGGLE_BUTTON(dialog->auto_login_check), FALSE);
+				GTK_TOGGLE_BUTTON(dialog->auto_login_check),
+				gaim_account_get_auto_login(dialog->account, GAIM_GTK_UI));
 	}
 
 	if (dialog->prpl_info != NULL &&
@@ -833,6 +834,11 @@
 			gtk_toggle_button_get_active(
 					GTK_TOGGLE_BUTTON(dialog->new_mail_check)));
 
+	/* Auto Login */
+	gaim_account_set_auto_login(dialog->account, GAIM_GTK_UI,
+			gtk_toggle_button_get_active(
+				GTK_TOGGLE_BUTTON(dialog->auto_login_check)));
+
 	/* TODO: Do something about auto-login. */
 
 	/* Password */