GIMP 2.99 Python 'nick' of the string parameters are not shown
Environment/Versions
- GIMP version: 2.99.7
- Package: Nightly a bit older : gimp-2.99.7-setup.exe - commit 1373bec6 Pipeline#303256
- Operating System: Windows 10
I wrote a Python script for GIMP 2.99.x.
But 'nick' of the string parameters are not shown.
In this case, the entry fields are indistinguishable. (Except a mouse hoovering for tooltip showing.)
class ShiroDialogArgsTestApi3 (Gimp.PlugIn):
## Parameters ##
__gproperties__ = {
"lyr_name1": (str,
_("Add Layer Name"),
_("Add Layer Name Tooltip"),
_("_Test"),
GObject.ParamFlags.READWRITE),
}
lyr_name2 = GObject.Property(type = str, default="_Test2",
nick =("Add Layer Name type2"),
blurb=_("Add Layer Name type2 Tooltip"))
The Official script foggify.py has the same issue. (The first parameter "Layer _name" is not shown as 'nick' of argument 'name'.)
Does something forgotten in libgimp (ex. gimpproceduredialog.c)?.
(I don't know much about C, so I might be wrong.)
In "gimpproceduredialog.c",
The block starting with the line 647, "else if (G_PARAM_SPEC_TYPE (pspec) == G_TYPE_PARAM_STRING)" does not have "g_param_spec_get_nick (pspec)".
It has only "gtk_text_view_new_with_buffer".
Therefore, maybe, it's dialog does not reflect/display the nick value in a script.
Please support 'nick' correctly for the string type parameter in Python script.