[gaim-migrate @ 12351]

Sun, 27 Mar 2005 05:17:18 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sun, 27 Mar 2005 05:17:18 +0000
changeset 10749
c06247f1e4bb
parent 10748
57d21866d182
child 10750
455f5dc6e2f2

[gaim-migrate @ 12351]
This fixes the auto-reconnect plugin bug. The whole "wants_to_die"
thing feels a little dirty. Eh, it's fine for now.

Also, the gtkstatusbox starts off in the "available" state instead
of using the GaimStatus of whatever account is online. This negates
the effect of saving the GaimStatuses for an account.

More tomorrow...

src/account.c file | annotate | diff | comparison | revisions
src/gtkstatusbox.c file | annotate | diff | comparison | revisions
--- a/src/account.c	Sun Mar 27 05:02:25 2005 +0000
+++ b/src/account.c	Sun Mar 27 05:17:18 2005 +0000
@@ -1156,6 +1156,7 @@
 		(gaim_status_type_get_primitive(status_type) == GAIM_STATUS_OFFLINE) &&
 		gaim_account_is_connected(account))
 	{
+		account->gc->wants_to_die = TRUE;
 		gaim_account_disconnect(account);
 
 		/* No need to actually set the status, so we just exit */
--- a/src/gtkstatusbox.c	Sun Mar 27 05:02:25 2005 +0000
+++ b/src/gtkstatusbox.c	Sun Mar 27 05:17:18 2005 +0000
@@ -419,6 +419,10 @@
 	gtk_gaim_status_box_refresh(box);
 }
 
+/*
+ * TODO: This callback is triggered immediately, without the user actually
+ *       changing anything.  That's bad.
+ */
 static void gtk_gaim_status_box_changed(GtkComboBox *box)
 {
 	GtkGaimStatusBox *status_box = GTK_GAIM_STATUS_BOX(box);

mercurial