[gegl] gegl: gegl-bin treat files ending in .gegl as composition
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: gegl-bin treat files ending in .gegl as composition
- Date: Sun, 16 Apr 2017 15:07:09 +0000 (UTC)
commit 30e014ba866ee7a9a8a549dea6809407c89107c0
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Apr 16 17:03:25 2017 +0200
gegl: gegl-bin treat files ending in .gegl as composition
bin/gegl.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/bin/gegl.c b/bin/gegl.c
index 9867867..e17c083 100644
--- a/bin/gegl.c
+++ b/bin/gegl.c
@@ -61,7 +61,7 @@ gegl_enable_fatal_warnings (void)
int gegl_str_has_image_suffix (char *path);
int gegl_str_has_video_suffix (char *path);
-static gboolean file_is_gegl_xml (const gchar *path)
+static gboolean file_is_gegl_composition (const gchar *path)
{
gchar *extension;
@@ -72,6 +72,7 @@ static gboolean file_is_gegl_xml (const gchar *path)
if (extension[0]=='\0')
return FALSE;
if (!strcmp (extension, "xml")||
+ !strcmp (extension, "gegl")||
!strcmp (extension, "XML")||
!strcmp (extension, "svg")
)
@@ -165,7 +166,7 @@ main (gint argc,
}
script = g_string_free (acc, FALSE);
}
- else if (file_is_gegl_xml (o->file))
+ else if (file_is_gegl_composition (o->file))
{
g_file_get_contents (o->file, &script, NULL, &err);
if (err != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]