mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
app, libgimp: support GParamUInt on the wire
This commit is contained in:
parent
8f828d1899
commit
a6516e5097
3 changed files with 16 additions and 1 deletions
|
@ -104,6 +104,13 @@ _gimp_gp_param_def_to_param_spec (gpointer gimp,
|
|||
param_def->meta.m_int.default_val,
|
||||
flags);
|
||||
|
||||
if (! strcmp (param_def->type_name, "GParamUInt"))
|
||||
return g_param_spec_uint (name, nick, blurb,
|
||||
param_def->meta.m_int.min_val,
|
||||
param_def->meta.m_int.max_val,
|
||||
param_def->meta.m_int.default_val,
|
||||
flags);
|
||||
|
||||
if (! strcmp (param_def->type_name, "GimpParamInt8"))
|
||||
return gimp_param_spec_int8 (name, nick, blurb,
|
||||
param_def->meta.m_int.min_val,
|
||||
|
|
|
@ -51,7 +51,8 @@ _gimp_param_spec_to_gp_param_def (GParamSpec *pspec,
|
|||
param_def->meta.m_int.max_val = ispec->maximum;
|
||||
param_def->meta.m_int.default_val = ispec->default_value;
|
||||
}
|
||||
else if (pspec_type == GIMP_TYPE_PARAM_INT8)
|
||||
else if (pspec_type == G_TYPE_PARAM_UINT ||
|
||||
pspec_type == GIMP_TYPE_PARAM_INT8)
|
||||
{
|
||||
GParamSpecUInt *uspec = G_PARAM_SPEC_UINT (pspec);
|
||||
|
||||
|
|
|
@ -95,6 +95,13 @@ _gimp_gp_param_def_to_param_spec (gpointer gimp,
|
|||
param_def->meta.m_int.default_val,
|
||||
flags);
|
||||
|
||||
if (! strcmp (param_def->type_name, "GParamUInt"))
|
||||
return g_param_spec_uint (name, nick, blurb,
|
||||
param_def->meta.m_int.min_val,
|
||||
param_def->meta.m_int.max_val,
|
||||
param_def->meta.m_int.default_val,
|
||||
flags);
|
||||
|
||||
if (! strcmp (param_def->type_name, "GimpParamInt8"))
|
||||
return gimp_param_spec_int8 (name, nick, blurb,
|
||||
param_def->meta.m_int.min_val,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue