plug-ins: Update Python plug-ins after 6d36d143

A new parameter was added to indicate if
it was okay to run without setting these
resource values.
This commit is contained in:
Alx Sa 2024-07-07 12:05:54 +00:00
parent 8e6fb3d0e4
commit ba79fd00d3
5 changed files with 9 additions and 9 deletions

View File

@ -203,7 +203,7 @@ class GradientsSaveAsCSS (Gimp.PlugIn):
Gimp.RunMode.NONINTERACTIVE, Gimp.RunMode.NONINTERACTIVE,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_gradient_argument ("gradient", _("_Gradient to use"), procedure.add_gradient_argument ("gradient", _("_Gradient to use"),
"", GObject.ParamFlags.READWRITE) "", False, GObject.ParamFlags.READWRITE)
procedure.add_file_argument ("file", _("_File"), procedure.add_file_argument ("file", _("_File"),
"", GObject.ParamFlags.READWRITE) "", GObject.ParamFlags.READWRITE)
return procedure return procedure

View File

@ -57,7 +57,7 @@ class PaletteOffset (Gimp.PlugIn):
Gimp.RunMode.NONINTERACTIVE, Gimp.RunMode.NONINTERACTIVE,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_palette_argument ("palette", _("_Palette"), procedure.add_palette_argument ("palette", _("_Palette"),
_("Palette"), _("Palette"), False,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_int_argument ("amount", _("O_ffset"), _("Offset"), procedure.add_int_argument ("amount", _("O_ffset"), _("Offset"),
1, GLib.MAXINT, 1, GObject.ParamFlags.READWRITE) 1, GLib.MAXINT, 1, GObject.ParamFlags.READWRITE)

View File

@ -356,7 +356,7 @@ class PaletteSort (Gimp.PlugIn):
Gimp.RunMode.INTERACTIVE, Gimp.RunMode.INTERACTIVE,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_palette_argument ("palette", _("_Palette"), procedure.add_palette_argument ("palette", _("_Palette"),
_("Palette"), _("Palette"), False,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
selection_choice = Gimp.Choice.new() selection_choice = Gimp.Choice.new()

View File

@ -145,7 +145,7 @@ class PaletteToGradient (Gimp.PlugIn):
Gimp.RunMode.NONINTERACTIVE, Gimp.RunMode.NONINTERACTIVE,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_palette_argument ("palette", _("_Palette"), procedure.add_palette_argument ("palette", _("_Palette"),
_("Palette"), _("Palette"), False,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_gradient_return_value ("new-gradient", _("The newly created gradient"), procedure.add_gradient_return_value ("new-gradient", _("The newly created gradient"),
_("The newly created gradient"), _("The newly created gradient"),

View File

@ -152,18 +152,18 @@ class TestDialogPlugin (Gimp.PlugIn):
# Top level menu "Test" # Top level menu "Test"
procedure.add_menu_path ("<Image>/Filters/Development/Demos") procedure.add_menu_path ("<Image>/Filters/Development/Demos")
procedure.add_brush_argument ("brush", "_Brush", "Brush", procedure.add_brush_argument ("brush", "_Brush", "Brush", True,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_font_argument ("font", "_Font", "Font", procedure.add_font_argument ("font", "_Font", "Font", True,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_gradient_argument ("gradient", "_Gradient", procedure.add_gradient_argument ("gradient", "_Gradient",
"Gradient", "Gradient", True,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_palette_argument ("palette", "_Palette", procedure.add_palette_argument ("palette", "_Palette",
"Palette", "Palette", True,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
procedure.add_pattern_argument ("pattern", "Pa_ttern", procedure.add_pattern_argument ("pattern", "Pa_ttern",
"Pattern", "Pattern", True,
GObject.ParamFlags.READWRITE) GObject.ParamFlags.READWRITE)
return procedure return procedure