Commit a5e35eab authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

always call the batch interpreter in NON-INTERACTIVE mode (see bug

2005-10-20  Sven Neumann  <sven@gimp.org>

	* app/batch.c (batch_run): always call the batch interpreter in
	NON-INTERACTIVE mode (see bug #167964).

	* plug-ins/script-fu/script-fu-text-console.c: removed the run-mode
	check.
parent 2a573943
2005-10-20 Sven Neumann <sven@gimp.org>
* app/batch.c (batch_run): always call the batch interpreter in
NON-INTERACTIVE mode (see bug #167964).
* plug-ins/script-fu/script-fu-text-console.c: removed the run-mode
check.
2005-10-20 Sven Neumann <sven@gimp.org>
* plug-ins/helpbrowser/dialog.c (title_changed): replace newlines
......
......@@ -79,7 +79,7 @@ batch_run (Gimp *gimp,
ProcRecord *proc = procedural_db_lookup (gimp, proc_name);
if (proc)
batch_run_cmd (gimp, proc_name, proc, GIMP_RUN_INTERACTIVE, NULL);
batch_run_cmd (gimp, proc_name, proc, GIMP_RUN_NONINTERACTIVE, NULL);
else
g_message (_("The batch interpreter '%s' is not available. "
"Batch mode disabled."), proc_name);
......
......@@ -43,36 +43,15 @@ script_fu_text_console_run (const gchar *name,
GimpParam **return_vals)
{
static GimpParam values[1];
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
GimpRunMode run_mode;
run_mode = params[0].data.d_int32;
siod_set_output_file (stdout);
siod_set_verbose_level (2);
siod_print_welcome ();
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:
/* Enable SIOD output */
siod_set_output_file (stdout);
siod_set_verbose_level (2);
siod_print_welcome ();
/* Run the interface */
script_fu_text_console_interface ();
break;
case GIMP_RUN_WITH_LAST_VALS:
case GIMP_RUN_NONINTERACTIVE:
status = GIMP_PDB_CALLING_ERROR;
g_message (_("Script-Fu console mode allows only interactive invocation"));
break;
default:
break;
}
script_fu_text_console_interface ();
values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = status;
values[0].data.d_status = GIMP_PDB_SUCCESS;
*nreturn_vals = 1;
*return_vals = values;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment