[gaim-migrate @ 8614]

Sun, 28 Dec 2003 02:41:52 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sun, 28 Dec 2003 02:41:52 +0000
changeset 7943
fd47c7b061f6
parent 7942
e6c3c6ab87af
child 7944
619ec16df2c8

[gaim-migrate @ 8614]
I fixed a crash bug. To reproduce, do this:
1) Sign on with 2 or more accounts
2) Open the Join a Chat dialog
3) Sign on with an MSN account
4) Maybe select the MSN account in the Join a Chat drop down
I don't remember if the last step is actually necessary

src/gtkutils.c file | annotate | diff | comparison | revisions
--- a/src/gtkutils.c	Sat Dec 27 20:55:55 2003 +0000
+++ b/src/gtkutils.c	Sun Dec 28 02:41:52 2003 +0000
@@ -887,7 +887,7 @@
 	show_all = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(optmenu),
 												 "show_all"));
 
-	check_account_func = g_object_get_data(G_OBJECT(item),
+	check_account_func = g_object_get_data(G_OBJECT(optmenu),
 										   "check_account_func");
 
 	gtk_option_menu_remove_menu(GTK_OPTION_MENU(optmenu));
@@ -930,7 +930,7 @@
 	/* Set some data. */
 	g_object_set_data(G_OBJECT(optmenu), "user_data", user_data);
 	g_object_set_data(G_OBJECT(optmenu), "show_all", GINT_TO_POINTER(show_all));
-	g_object_set_data(G_OBJECT(optmenu), "chck_account_func",
+	g_object_set_data(G_OBJECT(optmenu), "check_account_func",
 					  check_account_func);
 
 	/* Create and set the actual menu. */

mercurial