summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-xbm.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-06-19 12:47:48 +0000
committerChristian Persch <chpe@src.gnome.org>2008-06-19 12:47:48 +0000
commit20c1f44e4eea8f9573748f53de4e65c7795a72eb (patch)
treebbe54d006b9731fae7a1a3206ef64d5bd8005ca5 /gdk-pixbuf/io-xbm.c
parentfebb302ef0d5c0ee59d84836e9a9083e2f42b317 (diff)
downloadgdk-pixbuf-20c1f44e4eea8f9573748f53de4e65c7795a72eb.tar.gz
Use g_set_error_literal where appropriate. Bug #538640.
svn path=/trunk/; revision=20463
Diffstat (limited to 'gdk-pixbuf/io-xbm.c')
-rw-r--r--gdk-pixbuf/io-xbm.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gdk-pixbuf/io-xbm.c b/gdk-pixbuf/io-xbm.c
index 1b5a17e42..068eb1cf0 100644
--- a/gdk-pixbuf/io-xbm.c
+++ b/gdk-pixbuf/io-xbm.c
@@ -289,20 +289,20 @@ gdk_pixbuf__xbm_image_load_real (FILE *f,
GdkPixbuf *pixbuf;
if (!read_bitmap_file_data (f, &w, &h, &data, &x_hot, &y_hot)) {
- g_set_error (error,
- GDK_PIXBUF_ERROR,
- GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("Invalid XBM file"));
+ g_set_error_literal (error,
+ GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ _("Invalid XBM file"));
return NULL;
}
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, w, h);
if (pixbuf == NULL) {
- g_set_error (error,
- GDK_PIXBUF_ERROR,
- GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
- _("Insufficient memory to load XBM image file"));
+ g_set_error_literal (error,
+ GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
+ _("Insufficient memory to load XBM image file"));
return NULL;
}
@@ -447,10 +447,10 @@ gdk_pixbuf__xbm_image_load_increment (gpointer data,
if (fwrite (buf, sizeof (guchar), size, context->file) != size) {
gint save_errno = errno;
context->all_okay = FALSE;
- g_set_error (error,
- G_FILE_ERROR,
- g_file_error_from_errno (save_errno),
- _("Failed to write to temporary file when loading XBM image"));
+ g_set_error_literal (error,
+ G_FILE_ERROR,
+ g_file_error_from_errno (save_errno),
+ _("Failed to write to temporary file when loading XBM image"));
return FALSE;
}