always call gimp_ui_init(), we need funtionality from GTK+, even if called

2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (run): always call gimp_ui_init(), we need
	funtionality from GTK+, even if called non-interactively.

svn path=/trunk/; revision=22996
This commit is contained in:
Sven Neumann
2007-07-25 11:05:13 +00:00
committed by Sven Neumann
parent b4519a54dd
commit f1d9937c25
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-07-25 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c (run): always call gimp_ui_init(), we need
funtionality from GTK+, even if called non-interactively.
2007-07-25 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/progress.pdb: added new procedure gimp-progress-end.

View File

@ -131,8 +131,7 @@ run (const gchar *name,
if (strcmp (name, PRINT_PROC_NAME) == 0)
{
if (run_mode == GIMP_RUN_INTERACTIVE)
gimp_ui_init (PLUG_IN_BINARY, FALSE);
gimp_ui_init (PLUG_IN_BINARY, FALSE);
if (! print_image (image_ID, drawable_ID,
run_mode == GIMP_RUN_INTERACTIVE))