mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects.
Also port more script-fu procedures to gimp_procedure_new2(), which were sharing some code with the script-fu batch procedure.
This commit is contained in:
parent
af00b66914
commit
5d3112a2f1
10 changed files with 52 additions and 49 deletions
|
@ -26,13 +26,12 @@ from gi.repository import Gio
|
|||
import sys
|
||||
|
||||
|
||||
def code_eval(procedure, run_mode, code, args, data):
|
||||
def code_eval(procedure, run_mode, code, config, data):
|
||||
if code == '-':
|
||||
code = sys.stdin.read()
|
||||
exec(code, globals())
|
||||
return procedure.new_return_values(Gimp.PDBStatusType.SUCCESS, GLib.Error())
|
||||
|
||||
|
||||
class PythonEval (Gimp.PlugIn):
|
||||
## GimpPlugIn virtual methods ##
|
||||
def do_set_i18n(self, procname):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue