quit the main loop when the dialog is destroyed. Fixes bug #133532.

2004-02-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.c (dialog): quit the main loop when
	the dialog is destroyed. Fixes bug #133532.
This commit is contained in:
Sven Neumann
2004-02-05 18:26:29 +00:00
committed by Sven Neumann
parent da6b161eff
commit 42a11f42f8
2 changed files with 9 additions and 1 deletions

View File

@ -1426,6 +1426,10 @@ dialog(GimpDrawable *drawable)
g_signal_connect(dlg, "key_release_event",
G_CALLBACK(key_release_cb), NULL);
g_signal_connect (dlg, "destroy",
G_CALLBACK (gtk_main_quit),
NULL);
main_vbox = gtk_vbox_new(FALSE, 1);
gtk_container_set_border_width(GTK_CONTAINER(main_vbox), 1);
gtk_container_add(GTK_CONTAINER(dlg), main_vbox);
@ -1533,7 +1537,6 @@ dialog(GimpDrawable *drawable)
menu_build_mru_items(_mru);
gtk_main();
gdk_flush();
return run_flag;
}