changeset 8322:ffb601c6b833

[gaim-migrate @ 9046] Fix the response handler for the Insert Image dialog. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 23 Feb 2004 22:35:12 +0000
parents eb269b81fff8
children 4786adbe8720
files src/gtkimhtmltoolbar.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtmltoolbar.c	Mon Feb 23 22:26:08 2004 +0000
+++ b/src/gtkimhtmltoolbar.c	Mon Feb 23 22:35:12 2004 +0000
@@ -336,7 +336,7 @@
 					    _("_Insert"), G_CALLBACK(do_insert_link_cb),
 					    _("Cancel"), G_CALLBACK(cancel_link_cb),
 					    toolbar);
- 	} else {
+	} else {
 		close_link_dialog(toolbar);
 	}
 	gtk_widget_grab_focus(toolbar->imhtml);
@@ -354,8 +354,6 @@
 
 	if (resp != GTK_RESPONSE_OK) {
 		//set_toggle(toolbar->image, FALSE);
-		gtk_widget_destroy(widget);
-		toolbar->image_dialog = NULL;
 		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toolbar->image), FALSE);
 		return;
 	}