gegl r1946 - in trunk: . operations/io
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r1946 - in trunk: . operations/io
- Date: Thu, 31 Jan 2008 11:25:58 +0000 (GMT)
Author: neo
Date: Thu Jan 31 11:25:58 2008
New Revision: 1946
URL: http://svn.gnome.org/viewvc/gegl?rev=1946&view=rev
Log:
2008-01-31 Sven Neumann <sven gimp org>
* operations/io/load.c (prepare): fixed error handling (again).
Modified:
trunk/ChangeLog
trunk/operations/io/load.c
Modified: trunk/operations/io/load.c
==============================================================================
--- trunk/operations/io/load.c (original)
+++ trunk/operations/io/load.c Thu Jan 31 11:25:58 2008
@@ -48,14 +48,13 @@
static void attach (GeglOperation *operation)
{
- GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
- GeglChant *self = GEGL_CHANT (operation);
+ GeglChant *self = GEGL_CHANT (operation);
self->output = gegl_node_get_output_proxy (operation->node, "output");
self->load = gegl_node_new_child (operation->node,
"operation", "text",
- "string", "foo",
+ "string", "foo",
NULL);
gegl_node_link (self->load, self->output);
@@ -109,12 +108,14 @@
(self->cached_path == NULL || strcmp (o->path, self->cached_path)))
{
const gchar *extension = strrchr (o->path, '.');
- const gchar *handler = NULL;
+ const gchar *handler = NULL;
if (!g_file_test (o->path, G_FILE_TEST_EXISTS))
{
- gchar *tmp = g_malloc(strlen (o->path) + 100);
- sprintf (tmp, "File '%s' does not exist", o->path);
+ gchar *name = g_filename_display_name (o->path);
+ gchar *tmp = g_strdup_printf ("File '%s' does not exist", name);
+ g_free (name);
+
g_warning ("load: %s", tmp);
gegl_node_set (self->load,
"operation", "text",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]