gimp r26618 - in trunk: . plug-ins/file-psd
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26618 - in trunk: . plug-ins/file-psd
- Date: Sun, 17 Aug 2008 11:14:13 +0000 (UTC)
Author: neo
Date: Sun Aug 17 11:14:13 2008
New Revision: 26618
URL: http://svn.gnome.org/viewvc/gimp?rev=26618&view=rev
Log:
2008-08-17 Sven Neumann <sven gimp org>
* plug-ins/file-psd/psd-util.c (psd_set_error): changed to use
g_set_error().
Modified:
trunk/ChangeLog
trunk/plug-ins/file-psd/psd-util.c
Modified: trunk/plug-ins/file-psd/psd-util.c
==============================================================================
--- trunk/plug-ins/file-psd/psd-util.c (original)
+++ trunk/plug-ins/file-psd/psd-util.c Sun Aug 17 11:14:13 2008
@@ -45,19 +45,15 @@
const gint err_no,
GError **error)
{
- /*
- * Set error
- */
if (file_eof)
{
- *error = g_error_new (G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Unexpected end of file"));
+ g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
+ "%s", _("Unexpected end of file"));
}
else
{
- *error = g_error_new_literal (G_FILE_ERROR,
- g_file_error_from_errno (err_no),
- g_strerror (err_no));
+ g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (err_no),
+ "%s", g_strerror (err_no));
}
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]