use the UTF-encoded URI in error messages, not the filename.

2004-02-02  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_save_thumb): use
	the UTF-encoded URI in error messages, not the filename.

	* app/Makefile.am: use $(EXEEXT) for dist-hook binary dependency.

	* tools/gimp-remote.c: include <unistd.h> conditionally.
This commit is contained in:
Sven Neumann 2004-02-02 12:40:18 +00:00 committed by Sven Neumann
parent 528bb75cf0
commit 04f09639b2
4 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,12 @@
2004-02-02 Sven Neumann <sven@gimp.org>
* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_save_thumb): use
the UTF-encoded URI in error messages, not the filename.
* app/Makefile.am: use $(EXEEXT) for dist-hook binary dependency.
* tools/gimp-remote.c: include <unistd.h> conditionally.
2004-02-02 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpimagedock.c (gimp_image_dock_constructor):

View file

@ -167,6 +167,6 @@ endif
# hooks to assure that the system gimprc and the gimprc manpage are
# uptodate when a release is made
dist-hook: gimp-@GIMP_APP_VERSION@
dist-hook: gimp-$(GIMP_APP_VERSION)$(EXEEXT)
./$< --dump-gimprc-system > $(top_srcdir)/etc/gimprc
./$< --dump-gimprc-manpage > $(top_srcdir)/docs/gimprc-$(GIMP_APP_VERSION).5.in

View file

@ -883,8 +883,8 @@ gimp_thumbnail_save_thumb (GimpThumbnail *thumbnail,
if (! success)
g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
"Could not set permissions of thumbnail '%s': %s",
name, g_strerror (errno));
"Could not set permissions of thumbnail for %s: %s",
thumbnail->image_uri, g_strerror (errno));
}
g_free (num_str);

View file

@ -37,10 +37,13 @@
#include "config.h"
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <gdk/gdkx.h>
#include <gtk/gtk.h>