Mercurial > pidgin
comparison src/gtkconv.c @ 13721:6a02f71a305a
[gaim-migrate @ 16130]
SF Patch #1480718
Fixes SF Bug #1473246
Close the search window when a conversation is closed, to prevent crashes.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 03 May 2006 04:12:35 +0000 |
parents | 4cf1db3ffada |
children | f3cd05396523 |
comparison
equal
deleted
inserted
replaced
13720:57a683321bec | 13721:6a02f71a305a |
---|---|
4421 gaim_gtk_conv_window_remove_gtkconv(gtkconv->win, gtkconv); | 4421 gaim_gtk_conv_window_remove_gtkconv(gtkconv->win, gtkconv); |
4422 | 4422 |
4423 /* If the "Save Conversation" or "Save Icon" dialogs are open then close them */ | 4423 /* If the "Save Conversation" or "Save Icon" dialogs are open then close them */ |
4424 gaim_request_close_with_handle(gtkconv); | 4424 gaim_request_close_with_handle(gtkconv); |
4425 gaim_notify_close_with_handle(gtkconv); | 4425 gaim_notify_close_with_handle(gtkconv); |
4426 | |
4427 /* Close the "Find" dialog if it's open */ | |
4428 if (gtkconv->dialogs.search) | |
4429 gtk_widget_destroy(gtkconv->dialogs.search); | |
4426 | 4430 |
4427 gtk_widget_destroy(gtkconv->tab_cont); | 4431 gtk_widget_destroy(gtkconv->tab_cont); |
4428 g_object_unref(gtkconv->tab_cont); | 4432 g_object_unref(gtkconv->tab_cont); |
4429 | 4433 |
4430 if (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_IM) { | 4434 if (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_IM) { |