mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
Changed formatting of output from gimp-procedural-db-dump to make it more
2006-04-11 Kevin Cozens <kcozens@cvs.gnome.org> * app/pdb/gimp-pdb-query.c: Changed formatting of output from gimp-procedural-db-dump to make it more easily human (and machine) readable. Fixes bug #337843.
This commit is contained in:
parent
a9f19a946d
commit
2f924e7eb1
|
@ -1,3 +1,9 @@
|
||||||
|
2006-04-11 Kevin Cozens <kcozens@cvs.gnome.org>
|
||||||
|
|
||||||
|
* app/pdb/gimp-pdb-query.c: Changed formatting of output from
|
||||||
|
gimp-procedural-db-dump to make it more easily human (and machine)
|
||||||
|
readable. Fixes bug #337843.
|
||||||
|
|
||||||
2006-04-11 Sven Neumann <sven@gimp.org>
|
2006-04-11 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/units.c
|
* app/units.c
|
||||||
|
|
|
@ -380,7 +380,7 @@ gimp_pdb_print_entry (gpointer key,
|
||||||
|
|
||||||
num++;
|
num++;
|
||||||
|
|
||||||
fprintf (file, "\n(register-procedure ");
|
fprintf (file, "(register-procedure ");
|
||||||
|
|
||||||
if (list || num != 1)
|
if (list || num != 1)
|
||||||
{
|
{
|
||||||
|
@ -394,53 +394,65 @@ gimp_pdb_print_entry (gpointer key,
|
||||||
|
|
||||||
type_desc = gimp_enum_get_desc (proc_class, procedure->proc_type);
|
type_desc = gimp_enum_get_desc (proc_class, procedure->proc_type);
|
||||||
|
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->blurb);
|
output_string (file, procedure->blurb);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->help);
|
output_string (file, procedure->help);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->author);
|
output_string (file, procedure->author);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->copyright);
|
output_string (file, procedure->copyright);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->date);
|
output_string (file, procedure->date);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, type_desc->value_desc);
|
output_string (file, type_desc->value_desc);
|
||||||
|
|
||||||
fprintf (file, "( ");
|
fprintf (file, " (");
|
||||||
for (i = 0; i < procedure->num_args; i++)
|
for (i = 0; i < procedure->num_args; i++)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec = procedure->args[i];
|
GParamSpec *pspec = procedure->args[i];
|
||||||
GimpPDBArgType arg_type;
|
GimpPDBArgType arg_type;
|
||||||
|
|
||||||
fprintf (file, "( ");
|
fprintf (file, "\n (\n");
|
||||||
|
|
||||||
arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec->value_type);
|
arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec->value_type);
|
||||||
|
|
||||||
arg_value = g_enum_get_value (arg_class, arg_type);
|
arg_value = g_enum_get_value (arg_class, arg_type);
|
||||||
|
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, g_param_spec_get_name (pspec));
|
output_string (file, g_param_spec_get_name (pspec));
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, arg_value->value_name);
|
output_string (file, arg_value->value_name);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, g_param_spec_get_blurb (pspec));
|
output_string (file, g_param_spec_get_blurb (pspec));
|
||||||
|
|
||||||
fprintf (file, " ) ");
|
fprintf (file, " )");
|
||||||
}
|
}
|
||||||
fprintf (file, " ) ");
|
fprintf (file, "\n )\n");
|
||||||
|
|
||||||
fprintf (file, "( ");
|
fprintf (file, " (");
|
||||||
for (i = 0; i < procedure->num_values; i++)
|
for (i = 0; i < procedure->num_values; i++)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec = procedure->values[i];
|
GParamSpec *pspec = procedure->values[i];
|
||||||
GimpPDBArgType arg_type;
|
GimpPDBArgType arg_type;
|
||||||
|
|
||||||
fprintf (file, "( ");
|
fprintf (file, "\n (\n");
|
||||||
|
|
||||||
arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec->value_type);
|
arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec->value_type);
|
||||||
|
|
||||||
arg_value = g_enum_get_value (arg_class, arg_type);
|
arg_value = g_enum_get_value (arg_class, arg_type);
|
||||||
|
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, g_param_spec_get_name (pspec));
|
output_string (file, g_param_spec_get_name (pspec));
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, arg_value->value_name);
|
output_string (file, arg_value->value_name);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, g_param_spec_get_blurb (pspec));
|
output_string (file, g_param_spec_get_blurb (pspec));
|
||||||
|
|
||||||
fprintf (file, " ) ");
|
fprintf (file, " )");
|
||||||
}
|
}
|
||||||
fprintf (file, " ) ");
|
fprintf (file, "\n )");
|
||||||
fprintf (file, " ) ");
|
fprintf (file, "\n)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
g_string_free (buf, TRUE);
|
g_string_free (buf, TRUE);
|
||||||
|
|
|
@ -380,7 +380,7 @@ gimp_pdb_print_entry (gpointer key,
|
||||||
|
|
||||||
num++;
|
num++;
|
||||||
|
|
||||||
fprintf (file, "\n(register-procedure ");
|
fprintf (file, "(register-procedure ");
|
||||||
|
|
||||||
if (list || num != 1)
|
if (list || num != 1)
|
||||||
{
|
{
|
||||||
|
@ -394,53 +394,65 @@ gimp_pdb_print_entry (gpointer key,
|
||||||
|
|
||||||
type_desc = gimp_enum_get_desc (proc_class, procedure->proc_type);
|
type_desc = gimp_enum_get_desc (proc_class, procedure->proc_type);
|
||||||
|
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->blurb);
|
output_string (file, procedure->blurb);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->help);
|
output_string (file, procedure->help);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->author);
|
output_string (file, procedure->author);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->copyright);
|
output_string (file, procedure->copyright);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, procedure->date);
|
output_string (file, procedure->date);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, type_desc->value_desc);
|
output_string (file, type_desc->value_desc);
|
||||||
|
|
||||||
fprintf (file, "( ");
|
fprintf (file, " (");
|
||||||
for (i = 0; i < procedure->num_args; i++)
|
for (i = 0; i < procedure->num_args; i++)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec = procedure->args[i];
|
GParamSpec *pspec = procedure->args[i];
|
||||||
GimpPDBArgType arg_type;
|
GimpPDBArgType arg_type;
|
||||||
|
|
||||||
fprintf (file, "( ");
|
fprintf (file, "\n (\n");
|
||||||
|
|
||||||
arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec->value_type);
|
arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec->value_type);
|
||||||
|
|
||||||
arg_value = g_enum_get_value (arg_class, arg_type);
|
arg_value = g_enum_get_value (arg_class, arg_type);
|
||||||
|
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, g_param_spec_get_name (pspec));
|
output_string (file, g_param_spec_get_name (pspec));
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, arg_value->value_name);
|
output_string (file, arg_value->value_name);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, g_param_spec_get_blurb (pspec));
|
output_string (file, g_param_spec_get_blurb (pspec));
|
||||||
|
|
||||||
fprintf (file, " ) ");
|
fprintf (file, " )");
|
||||||
}
|
}
|
||||||
fprintf (file, " ) ");
|
fprintf (file, "\n )\n");
|
||||||
|
|
||||||
fprintf (file, "( ");
|
fprintf (file, " (");
|
||||||
for (i = 0; i < procedure->num_values; i++)
|
for (i = 0; i < procedure->num_values; i++)
|
||||||
{
|
{
|
||||||
GParamSpec *pspec = procedure->values[i];
|
GParamSpec *pspec = procedure->values[i];
|
||||||
GimpPDBArgType arg_type;
|
GimpPDBArgType arg_type;
|
||||||
|
|
||||||
fprintf (file, "( ");
|
fprintf (file, "\n (\n");
|
||||||
|
|
||||||
arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec->value_type);
|
arg_type = gimp_pdb_compat_arg_type_from_gtype (pspec->value_type);
|
||||||
|
|
||||||
arg_value = g_enum_get_value (arg_class, arg_type);
|
arg_value = g_enum_get_value (arg_class, arg_type);
|
||||||
|
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, g_param_spec_get_name (pspec));
|
output_string (file, g_param_spec_get_name (pspec));
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, arg_value->value_name);
|
output_string (file, arg_value->value_name);
|
||||||
|
fprintf (file, " ");
|
||||||
output_string (file, g_param_spec_get_blurb (pspec));
|
output_string (file, g_param_spec_get_blurb (pspec));
|
||||||
|
|
||||||
fprintf (file, " ) ");
|
fprintf (file, " )");
|
||||||
}
|
}
|
||||||
fprintf (file, " ) ");
|
fprintf (file, "\n )");
|
||||||
fprintf (file, " ) ");
|
fprintf (file, "\n)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
g_string_free (buf, TRUE);
|
g_string_free (buf, TRUE);
|
||||||
|
|
Loading…
Reference in a new issue