app/vectors/gimpvectors-import.[ch] allow to optionally create a
2003-09-11 Sven Neumann <sven@gimp.org> * app/vectors/gimpvectors-import.[ch] * app/gui/vectors-commands.c: allow to optionally create a GimpVectors object per <path> element. Made this the default until there's a GUI for this.
This commit is contained in:

committed by
Sven Neumann

parent
268c4fb1ce
commit
0037f5a7ea
@ -225,23 +225,17 @@ void
|
||||
vectors_import_cmd_callback (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpVectors *vectors;
|
||||
GError *error = NULL;
|
||||
GimpImage *gimage;
|
||||
GError *error = NULL;
|
||||
return_if_no_image (gimage, data);
|
||||
|
||||
vectors = gimp_vectors_import (gimage, "path.svg", error);
|
||||
|
||||
if (vectors)
|
||||
{
|
||||
gimp_image_add_vectors (gimage, vectors, -1);
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
else
|
||||
if (! gimp_vectors_import (gimage, "path.svg", FALSE, &error))
|
||||
{
|
||||
g_message (error->message);
|
||||
g_error_free (error);
|
||||
}
|
||||
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user