# HG changeset patch # User Mark Doliner # Date 1130035311 0 # Node ID 2f6b4c544d5b13cdc02a7f61b54fd996ecb3f748 # Parent ef511dec990395e2b8b9e70e997b425b10552806 [gaim-migrate @ 14025] Is there a reason these were done using a g_timeout? It was causing a crash for me. To reproduce: 1. Sign on an IRC account on freenode with a nick that is registered with nickserv 2. You are sent messages from 2 people: nickserv and I think memoserv 3. Without looking at the second tab, close the conversation window From the bt, it looked like the window would get closed, then a g_timeout would be called and passed a pointer to the now non-existant GaimGtkWindow committer: Tailor Script diff -r ef511dec9903 -r 2f6b4c544d5b src/gtkconv.c --- a/src/gtkconv.c Sun Oct 23 02:25:25 2005 +0000 +++ b/src/gtkconv.c Sun Oct 23 02:41:51 2005 +0000 @@ -4720,7 +4720,7 @@ prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); if (win->menu.send_to != NULL) - g_timeout_add(0, (GSourceFunc)update_send_to_selection, win); + update_send_to_selection(win); /* * Handle hiding and showing stuff based on what type of conv this is. @@ -4909,7 +4909,7 @@ gaim_gtkconv_update_buttons_by_protocol(conv); - g_timeout_add(0, (GSourceFunc)update_send_to_selection, win); + update_send_to_selection(win); gaim_gtkthemes_smiley_themeize(gtkconv->imhtml); @@ -6427,7 +6427,7 @@ gtk_widget_grab_focus(focus_gtkconv->entry); if (gaim_gtk_conv_window_get_gtkconv_count(win) == 1) - g_timeout_add(0, (GSourceFunc)update_send_to_selection, win); + update_send_to_selection(win); } void