mirror of https://github.com/GNOME/gimp.git
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:
parent
4d4e7ccd7b
commit
cfdf1a9969
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
||||
Fri Mar 13 16:54:12 CST 1998 Larry Ewing <lewing@gimp.org>
|
||||
|
||||
* app/image_render.c: added some g_return_if_fails to the render
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue