mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
app: add missing procedure argument types to pluginrc
GP_PARAM_DEF_TYPE_ID_ARRAY and GP_PARAM_DEF_TYPE_PARAM_DEF.
This commit is contained in:
parent
0f7f322fa5
commit
8acff481a3
1 changed files with 37 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
||||||
#include "gimp-intl.h"
|
#include "gimp-intl.h"
|
||||||
|
|
||||||
|
|
||||||
#define PLUG_IN_RC_FILE_VERSION 11
|
#define PLUG_IN_RC_FILE_VERSION 12
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -877,6 +877,24 @@ plug_in_proc_arg_deserialize (GScanner *scanner,
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GP_PARAM_DEF_TYPE_ID_ARRAY:
|
||||||
|
if (! gimp_scanner_parse_string (scanner,
|
||||||
|
¶m_def.meta.m_id_array.type_name))
|
||||||
|
{
|
||||||
|
token = G_TOKEN_STRING;
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GP_PARAM_DEF_TYPE_PARAM_DEF:
|
||||||
|
if (! gimp_scanner_parse_string (scanner,
|
||||||
|
¶m_def.meta.m_param_def.type_name))
|
||||||
|
{
|
||||||
|
token = G_TOKEN_STRING;
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! gimp_scanner_parse_token (scanner, G_TOKEN_RIGHT_PAREN))
|
if (! gimp_scanner_parse_token (scanner, G_TOKEN_RIGHT_PAREN))
|
||||||
|
@ -923,6 +941,14 @@ plug_in_proc_arg_deserialize (GScanner *scanner,
|
||||||
case GP_PARAM_DEF_TYPE_COLOR:
|
case GP_PARAM_DEF_TYPE_COLOR:
|
||||||
case GP_PARAM_DEF_TYPE_ID:
|
case GP_PARAM_DEF_TYPE_ID:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GP_PARAM_DEF_TYPE_ID_ARRAY:
|
||||||
|
g_free (param_def.meta.m_id_array.type_name);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GP_PARAM_DEF_TYPE_PARAM_DEF:
|
||||||
|
g_free (param_def.meta.m_param_def.type_name);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return token;
|
return token;
|
||||||
|
@ -1080,6 +1106,16 @@ plug_in_rc_write_proc_arg (GimpConfigWriter *writer,
|
||||||
gimp_config_writer_printf (writer, "%d",
|
gimp_config_writer_printf (writer, "%d",
|
||||||
param_def.meta.m_id.none_ok);
|
param_def.meta.m_id.none_ok);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GP_PARAM_DEF_TYPE_ID_ARRAY:
|
||||||
|
gimp_config_writer_string (writer,
|
||||||
|
param_def.meta.m_id_array.type_name);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GP_PARAM_DEF_TYPE_PARAM_DEF:
|
||||||
|
gimp_config_writer_string (writer,
|
||||||
|
param_def.meta.m_param_def.type_name);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
gimp_config_writer_close (writer);
|
gimp_config_writer_close (writer);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue