comparison src/gtkutils.c @ 7943:e8fc79fb648b

[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 committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 28 Dec 2003 02:41:52 +0000
parents f691e3eb4ff3
children 1b8261f374ea
comparison
equal deleted inserted replaced
7942:3e268e113bf1 7943:e8fc79fb648b
885 account = g_object_get_data(G_OBJECT(item), "account"); 885 account = g_object_get_data(G_OBJECT(item), "account");
886 886
887 show_all = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(optmenu), 887 show_all = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(optmenu),
888 "show_all")); 888 "show_all"));
889 889
890 check_account_func = g_object_get_data(G_OBJECT(item), 890 check_account_func = g_object_get_data(G_OBJECT(optmenu),
891 "check_account_func"); 891 "check_account_func");
892 892
893 gtk_option_menu_remove_menu(GTK_OPTION_MENU(optmenu)); 893 gtk_option_menu_remove_menu(GTK_OPTION_MENU(optmenu));
894 894
895 create_account_menu(optmenu, account, check_account_func, show_all); 895 create_account_menu(optmenu, account, check_account_func, show_all);
928 optmenu); 928 optmenu);
929 929
930 /* Set some data. */ 930 /* Set some data. */
931 g_object_set_data(G_OBJECT(optmenu), "user_data", user_data); 931 g_object_set_data(G_OBJECT(optmenu), "user_data", user_data);
932 g_object_set_data(G_OBJECT(optmenu), "show_all", GINT_TO_POINTER(show_all)); 932 g_object_set_data(G_OBJECT(optmenu), "show_all", GINT_TO_POINTER(show_all));
933 g_object_set_data(G_OBJECT(optmenu), "chck_account_func", 933 g_object_set_data(G_OBJECT(optmenu), "check_account_func",
934 check_account_func); 934 check_account_func);
935 935
936 /* Create and set the actual menu. */ 936 /* Create and set the actual menu. */
937 create_account_menu(optmenu, default_account, check_account_func, show_all); 937 create_account_menu(optmenu, default_account, check_account_func, show_all);
938 938