changeset 8447:be4cf7c09ca3

[gaim-migrate @ 9177] " This fixes a bug where the smiley dialog is not destroyed it is open when a conversation is destroyed." --Kevin Stange committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 15 Mar 2004 01:35:10 +0000
parents d9cf0c2f4339
children ebb160ec42af
files src/gtkimhtmltoolbar.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtmltoolbar.c	Mon Mar 15 01:30:16 2004 +0000
+++ b/src/gtkimhtmltoolbar.c	Mon Mar 15 01:35:10 2004 +0000
@@ -655,6 +655,12 @@
 {
 	GtkIMHtmlToolbar *toolbar = GTK_IMHTMLTOOLBAR(object);
 
+	if (toolbar->smiley_dialog != NULL)
+	{
+		gtk_widget_destroy(toolbar->smiley_dialog);
+		toolbar->smiley_dialog = NULL;
+	}
+
 	if (toolbar->sml)
 		free(toolbar->sml);
 	gtk_object_sink(GTK_OBJECT(toolbar->tooltips));