only close the dialog on GTK_RESPONSE_CLOSE.

2005-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/procedure-browser.c (run): only close the dialog
	on GTK_RESPONSE_CLOSE.
This commit is contained in:
Sven Neumann 2005-08-18 12:05:26 +00:00 committed by Sven Neumann
parent 29608a9394
commit b80a584f9a
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/procedure-browser.c (run): only close the dialog
on GTK_RESPONSE_CLOSE.
2005-08-18 Michael Natterer <mitch@gimp.org>
* plug-ins/common/animoptimize.c

View file

@ -125,14 +125,14 @@ run (const gchar *name,
dialog = gimp_proc_browser_dialog_new ();
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
gtk_dialog_run (GTK_DIALOG (dialog));
while (gtk_dialog_run (GTK_DIALOG (dialog)) != GTK_RESPONSE_CLOSE);
gtk_widget_destroy (dialog);
}
break;
case GIMP_RUN_WITH_LAST_VALS:
case GIMP_RUN_NONINTERACTIVE:
g_warning ("dbbrowser allows only interactive invocation");
g_warning (PLUG_IN_PROC " allows only interactive invocation");
values[0].data.d_status = GIMP_PDB_CALLING_ERROR;
break;