# HG changeset patch # User Sadrul Habib Chowdhury # Date 1137466854 0 # Node ID f01835b6bcac0f1611cf7d6184420b0374f1feb8 # Parent f9e6e0af41d6f26d8018f23d2fa86feb1935ae25 [gaim-migrate @ 15257] Part of SF Patch #1406437 from Sadrul This disconnects the signal handlers on the imhtml and its text buffer that have the toolbar as the data parameter. As Sadrul put it, "It makes sure that when an imhtml-attached toolbar is destroyed and the imhtml still exists, the signal-callbacks don't get triggered." committer: Richard Laager diff -r f9e6e0af41d6 -r f01835b6bcac src/gtkimhtmltoolbar.c --- a/src/gtkimhtmltoolbar.c Tue Jan 17 02:49:32 2006 +0000 +++ b/src/gtkimhtmltoolbar.c Tue Jan 17 03:00:54 2006 +0000 @@ -869,6 +869,14 @@ destroy_toolbar_bgcolor(NULL, NULL, toolbar); destroy_toolbar_fgcolor(NULL, NULL, toolbar); close_link_dialog(toolbar); + if (toolbar->imhtml) { + g_signal_handlers_disconnect_matched(toolbar->imhtml, + G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, + toolbar); + g_signal_handlers_disconnect_matched(GTK_IMHTML(toolbar->imhtml)->text_buffer, + G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, + toolbar); + } if (toolbar->sml) free(toolbar->sml);