mirror of https://github.com/GNOME/gimp.git
plug-ins: Allow Python GUI resources to be empty
Resolves #11772
While ba79fd00
fixed the number of
arguments in the resource arguments,
setting them to False prevented the GUI
from opening if the gradient wasn't set.
This patch switches the value to True to
fix the problem.
This commit is contained in:
parent
86ef74ae95
commit
d10a8c357f
|
@ -203,7 +203,7 @@ class GradientsSaveAsCSS (Gimp.PlugIn):
|
|||
Gimp.RunMode.NONINTERACTIVE,
|
||||
GObject.ParamFlags.READWRITE)
|
||||
procedure.add_gradient_argument ("gradient", _("_Gradient to use"),
|
||||
"", False, GObject.ParamFlags.READWRITE)
|
||||
"", True, GObject.ParamFlags.READWRITE)
|
||||
procedure.add_file_argument ("file", _("_File"),
|
||||
"", GObject.ParamFlags.READWRITE)
|
||||
return procedure
|
||||
|
|
|
@ -57,7 +57,7 @@ class PaletteOffset (Gimp.PlugIn):
|
|||
Gimp.RunMode.NONINTERACTIVE,
|
||||
GObject.ParamFlags.READWRITE)
|
||||
procedure.add_palette_argument ("palette", _("_Palette"),
|
||||
_("Palette"), False,
|
||||
_("Palette"), True,
|
||||
GObject.ParamFlags.READWRITE)
|
||||
procedure.add_int_argument ("amount", _("O_ffset"), _("Offset"),
|
||||
1, GLib.MAXINT, 1, GObject.ParamFlags.READWRITE)
|
||||
|
|
|
@ -356,7 +356,7 @@ class PaletteSort (Gimp.PlugIn):
|
|||
Gimp.RunMode.INTERACTIVE,
|
||||
GObject.ParamFlags.READWRITE)
|
||||
procedure.add_palette_argument ("palette", _("_Palette"),
|
||||
_("Palette"), False,
|
||||
_("Palette"), True,
|
||||
GObject.ParamFlags.READWRITE)
|
||||
|
||||
selection_choice = Gimp.Choice.new()
|
||||
|
|
|
@ -145,7 +145,7 @@ class PaletteToGradient (Gimp.PlugIn):
|
|||
Gimp.RunMode.NONINTERACTIVE,
|
||||
GObject.ParamFlags.READWRITE)
|
||||
procedure.add_palette_argument ("palette", _("_Palette"),
|
||||
_("Palette"), False,
|
||||
_("Palette"), True,
|
||||
GObject.ParamFlags.READWRITE)
|
||||
procedure.add_gradient_return_value ("new-gradient", _("The newly created gradient"),
|
||||
_("The newly created gradient"),
|
||||
|
|
Loading…
Reference in New Issue