mirror of https://github.com/GNOME/gimp.git
renamed gimp_vectors_new_from_* to gimp_vectors_import_from_*, as
2006-11-23 Simon Budig <simon@gimp.org> * tools/pdbgen/pdb/vectors.pdb: renamed gimp_vectors_new_from_* to gimp_vectors_import_from_*, as discussed in bug #378394. * plug-ins/common/svg.c * libgimp/gimp.def: changed accordingly. * libgimp/gimpvectors_pdb.[ch] * app/pdb/vectors_cmds.c: regenerated.
This commit is contained in:
parent
fa3ed4dbf5
commit
d87e5738b6
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2006-11-23 Simon Budig <simon@gimp.org>
|
||||
|
||||
* tools/pdbgen/pdb/vectors.pdb: renamed gimp_vectors_new_from_*
|
||||
to gimp_vectors_import_from_*, as discussed in bug #378394.
|
||||
|
||||
* plug-ins/common/svg.c
|
||||
* libgimp/gimp.def: changed accordingly.
|
||||
|
||||
* libgimp/gimpvectors_pdb.[ch]
|
||||
* app/pdb/vectors_cmds.c: regenerated.
|
||||
|
||||
2006-11-23 Simon Budig <simon@gimp.org>
|
||||
|
||||
* plug-ins/script-fu/tinyscheme/scheme-private.h
|
||||
|
|
|
@ -1106,11 +1106,11 @@ vectors_to_selection_invoker (GimpProcedure *procedure,
|
|||
}
|
||||
|
||||
static GValueArray *
|
||||
vectors_new_from_file_invoker (GimpProcedure *procedure,
|
||||
Gimp *gimp,
|
||||
GimpContext *context,
|
||||
GimpProgress *progress,
|
||||
const GValueArray *args)
|
||||
vectors_import_from_file_invoker (GimpProcedure *procedure,
|
||||
Gimp *gimp,
|
||||
GimpContext *context,
|
||||
GimpProgress *progress,
|
||||
const GValueArray *args)
|
||||
{
|
||||
gboolean success = TRUE;
|
||||
GValueArray *return_vals;
|
||||
|
@ -1164,11 +1164,11 @@ vectors_new_from_file_invoker (GimpProcedure *procedure,
|
|||
}
|
||||
|
||||
static GValueArray *
|
||||
vectors_new_from_string_invoker (GimpProcedure *procedure,
|
||||
Gimp *gimp,
|
||||
GimpContext *context,
|
||||
GimpProgress *progress,
|
||||
const GValueArray *args)
|
||||
vectors_import_from_string_invoker (GimpProcedure *procedure,
|
||||
Gimp *gimp,
|
||||
GimpContext *context,
|
||||
GimpProgress *progress,
|
||||
const GValueArray *args)
|
||||
{
|
||||
gboolean success = TRUE;
|
||||
GValueArray *return_vals;
|
||||
|
@ -2394,12 +2394,12 @@ register_vectors_procs (GimpPDB *pdb)
|
|||
g_object_unref (procedure);
|
||||
|
||||
/*
|
||||
* gimp-vectors-new-from-file
|
||||
* gimp-vectors-import-from-file
|
||||
*/
|
||||
procedure = gimp_procedure_new (vectors_new_from_file_invoker);
|
||||
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-vectors-new-from-file");
|
||||
procedure = gimp_procedure_new (vectors_import_from_file_invoker);
|
||||
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-vectors-import-from-file");
|
||||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-vectors-new-from-file",
|
||||
"gimp-vectors-import-from-file",
|
||||
"Import paths from an SVG file.",
|
||||
"This procedure imports paths from an SVG file. SVG elements other than paths and basic shapes are ignored.",
|
||||
"Simon Budig",
|
||||
|
@ -2446,12 +2446,12 @@ register_vectors_procs (GimpPDB *pdb)
|
|||
g_object_unref (procedure);
|
||||
|
||||
/*
|
||||
* gimp-vectors-new-from-string
|
||||
* gimp-vectors-import-from-string
|
||||
*/
|
||||
procedure = gimp_procedure_new (vectors_new_from_string_invoker);
|
||||
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-vectors-new-from-string");
|
||||
procedure = gimp_procedure_new (vectors_import_from_string_invoker);
|
||||
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-vectors-import-from-string");
|
||||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-vectors-new-from-string",
|
||||
"gimp-vectors-import-from-string",
|
||||
"Import paths from an SVG string.",
|
||||
"This procedure works like 'gimp-vectors-new-from-file' but takes a string rather than reading the SVG from a file. This allows you to write scripts that generate SVG and feed it to GIMP.",
|
||||
"Simon Budig",
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2006-11-23 Simon Budig <simon@gimp.org>
|
||||
|
||||
* libgimp/libgimp-sections.txt: follow name change.
|
||||
|
||||
* libgimp/tmpl/gimpvectors.sgml: regenerated.
|
||||
|
||||
2006-11-23 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimp/libgimp-sections.txt: added new symbols.
|
||||
|
|
|
@ -889,8 +889,8 @@ gimp_image_undo_thaw
|
|||
<SECTION>
|
||||
<FILE>gimpvectors</FILE>
|
||||
gimp_vectors_new
|
||||
gimp_vectors_new_from_file
|
||||
gimp_vectors_new_from_string
|
||||
gimp_vectors_import_from_file
|
||||
gimp_vectors_import_from_string
|
||||
gimp_vectors_get_strokes
|
||||
gimp_vectors_get_image
|
||||
gimp_vectors_get_linked
|
||||
|
|
|
@ -27,7 +27,7 @@ gimpvectors
|
|||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gimp_vectors_new_from_file ##### -->
|
||||
<!-- ##### FUNCTION gimp_vectors_import_from_file ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
@ -41,7 +41,7 @@ gimpvectors
|
|||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gimp_vectors_new_from_string ##### -->
|
||||
<!-- ##### FUNCTION gimp_vectors_import_from_string ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
|
|
@ -625,9 +625,9 @@ EXPORTS
|
|||
gimp_vectors_get_strokes
|
||||
gimp_vectors_get_tattoo
|
||||
gimp_vectors_get_visible
|
||||
gimp_vectors_import_from_file
|
||||
gimp_vectors_import_from_string
|
||||
gimp_vectors_new
|
||||
gimp_vectors_new_from_file
|
||||
gimp_vectors_new_from_string
|
||||
gimp_vectors_parasite_attach
|
||||
gimp_vectors_parasite_detach
|
||||
gimp_vectors_parasite_find
|
||||
|
|
|
@ -1214,7 +1214,7 @@ gimp_vectors_to_selection (gint32 vectors_ID,
|
|||
}
|
||||
|
||||
/**
|
||||
* gimp_vectors_new_from_file:
|
||||
* gimp_vectors_import_from_file:
|
||||
* @image_ID: The image.
|
||||
* @filename: The name of the SVG file to import.
|
||||
* @merge: Merge paths into a single vectors object.
|
||||
|
@ -1232,18 +1232,18 @@ gimp_vectors_to_selection (gint32 vectors_ID,
|
|||
* Since: GIMP 2.4
|
||||
*/
|
||||
gboolean
|
||||
gimp_vectors_new_from_file (gint32 image_ID,
|
||||
const gchar *filename,
|
||||
gboolean merge,
|
||||
gboolean scale,
|
||||
gint *num_vectors,
|
||||
gint32 **vectors_ids)
|
||||
gimp_vectors_import_from_file (gint32 image_ID,
|
||||
const gchar *filename,
|
||||
gboolean merge,
|
||||
gboolean scale,
|
||||
gint *num_vectors,
|
||||
gint32 **vectors_ids)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
gboolean success = TRUE;
|
||||
|
||||
return_vals = gimp_run_procedure ("gimp-vectors-new-from-file",
|
||||
return_vals = gimp_run_procedure ("gimp-vectors-import-from-file",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_IMAGE, image_ID,
|
||||
GIMP_PDB_STRING, filename,
|
||||
|
@ -1271,7 +1271,7 @@ gimp_vectors_new_from_file (gint32 image_ID,
|
|||
}
|
||||
|
||||
/**
|
||||
* gimp_vectors_new_from_string:
|
||||
* gimp_vectors_import_from_string:
|
||||
* @image_ID: The image.
|
||||
* @string: A string that must be a complete and valid SVG document.
|
||||
* @length: Number of bytes in string or -1 if the string is NULL terminated.
|
||||
|
@ -1291,19 +1291,19 @@ gimp_vectors_new_from_file (gint32 image_ID,
|
|||
* Since: GIMP 2.4
|
||||
*/
|
||||
gboolean
|
||||
gimp_vectors_new_from_string (gint32 image_ID,
|
||||
const gchar *string,
|
||||
gint length,
|
||||
gboolean merge,
|
||||
gboolean scale,
|
||||
gint *num_vectors,
|
||||
gint32 **vectors_ids)
|
||||
gimp_vectors_import_from_string (gint32 image_ID,
|
||||
const gchar *string,
|
||||
gint length,
|
||||
gboolean merge,
|
||||
gboolean scale,
|
||||
gint *num_vectors,
|
||||
gint32 **vectors_ids)
|
||||
{
|
||||
GimpParam *return_vals;
|
||||
gint nreturn_vals;
|
||||
gboolean success = TRUE;
|
||||
|
||||
return_vals = gimp_run_procedure ("gimp-vectors-new-from-string",
|
||||
return_vals = gimp_run_procedure ("gimp-vectors-import-from-string",
|
||||
&nreturn_vals,
|
||||
GIMP_PDB_IMAGE, image_ID,
|
||||
GIMP_PDB_STRING, string,
|
||||
|
|
|
@ -132,13 +132,13 @@ gboolean gimp_vectors_to_selection (gint32
|
|||
gboolean feather,
|
||||
gdouble feather_radius_x,
|
||||
gdouble feather_radius_y);
|
||||
gboolean gimp_vectors_new_from_file (gint32 image_ID,
|
||||
gboolean gimp_vectors_import_from_file (gint32 image_ID,
|
||||
const gchar *filename,
|
||||
gboolean merge,
|
||||
gboolean scale,
|
||||
gint *num_vectors,
|
||||
gint32 **vectors_ids);
|
||||
gboolean gimp_vectors_new_from_string (gint32 image_ID,
|
||||
gboolean gimp_vectors_import_from_string (gint32 image_ID,
|
||||
const gchar *string,
|
||||
gint length,
|
||||
gboolean merge,
|
||||
|
|
|
@ -231,9 +231,9 @@ run (const gchar *name,
|
|||
gint num_vectors;
|
||||
gint32 *vectors;
|
||||
|
||||
gimp_vectors_new_from_file (image_ID, filename,
|
||||
load_vals.merge, TRUE,
|
||||
&num_vectors, &vectors);
|
||||
gimp_vectors_import_from_file (image_ID, filename,
|
||||
load_vals.merge, TRUE,
|
||||
&num_vectors, &vectors);
|
||||
if (num_vectors)
|
||||
g_free (vectors);
|
||||
}
|
||||
|
|
|
@ -1123,7 +1123,7 @@ CODE
|
|||
|
||||
}
|
||||
|
||||
sub vectors_new_from_file {
|
||||
sub vectors_import_from_file {
|
||||
$blurb = 'Import paths from an SVG file.';
|
||||
|
||||
$help = <<'HELP';
|
||||
|
@ -1182,7 +1182,7 @@ CODE
|
|||
);
|
||||
}
|
||||
|
||||
sub vectors_new_from_string {
|
||||
sub vectors_import_from_string {
|
||||
$blurb = 'Import paths from an SVG string.';
|
||||
|
||||
$help = <<'HELP';
|
||||
|
@ -1278,8 +1278,8 @@ CODE
|
|||
vectors_bezier_stroke_cubicto
|
||||
vectors_bezier_stroke_new_ellipse
|
||||
vectors_to_selection
|
||||
vectors_new_from_file
|
||||
vectors_new_from_string);
|
||||
vectors_import_from_file
|
||||
vectors_import_from_string);
|
||||
|
||||
%exports = (app => [@procs], lib => [@procs]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue