[Gimp-developer] Enhance PDB display new and delete so scripts don't abort in batch

2010-09-20 Thread lloyd konneker
This proposes enhancing PDB gimp_display_new() to successfully return a null display when non-interactive, and enhancing PDB gimp_display_delete to return success even for a null display. Most scripts (Python and Scheme) that call gimp_display_new() abort the script when run in batch mode. The

Re: [Gimp-developer] Enhance PDB display new and delete so scripts don't abort in batch

2010-09-20 Thread Kevin Cozens
lloyd konneker wrote: An alternative in Python is to bracket a call to gimp_display_new() with try:except:, but there is no such alternative in Scheme. Scheme has the catch and throw statements. There are some simple notes about them in the script-fu.init file but that is about it for the