only destroy the dialog at the end of gtk_main() if it still exists.

Sat Mar 14 00:50:31 1998  Tim Janik  <timj@gimp.org>

        * plug-ins/script-fu/script-fu-scripts.c: only destroy the dialog at
                the end of gtk_main() if it still exists.

this commit is devoted to manic yosh ;)
This commit is contained in:
Tim Janik
1998-03-13 23:56:06 +00:00
committed by Tim Janik
parent 4d4e7ccd7b
commit cfdf1a9969
3 changed files with 9 additions and 4 deletions

View File

@ -774,6 +774,7 @@ script_fu_interface (SFScript *script)
sprintf (title, "Script-Fu: %s", script->description);
dlg = gtk_dialog_new ();
gtk_quit_add_destroy (1, GTK_OBJECT (dlg));
gtk_window_set_title (GTK_WINDOW (dlg), title);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) script_fu_close_callback,
@ -915,8 +916,7 @@ script_fu_interface (SFScript *script)
gtk_widget_show (dlg);
gtk_main ();
gtk_widget_destroy (dlg);
g_free (script->args_widgets);
gdk_flush ();
}