diff options
Diffstat (limited to 'io-psd.c')
| -rw-r--r-- | io-psd.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -256,7 +256,7 @@ gdk_pixbuf__psd_image_begin_load (GdkPixbufModuleSizeFunc size_func, | |||
| 256 | { | 256 | { |
| 257 | PsdContext* context = g_malloc(sizeof(PsdContext)); | 257 | PsdContext* context = g_malloc(sizeof(PsdContext)); |
| 258 | if (context == NULL) { | 258 | if (context == NULL) { |
| 259 | g_set_error ( | 259 | g_set_error_literal ( |
| 260 | error, | 260 | error, |
| 261 | GDK_PIXBUF_ERROR, | 261 | GDK_PIXBUF_ERROR, |
| 262 | GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, | 262 | GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, |
| @@ -291,7 +291,7 @@ gdk_pixbuf__psd_image_stop_load (gpointer context_ptr, GError **error) | |||
| 291 | gboolean retval = TRUE; | 291 | gboolean retval = TRUE; |
| 292 | 292 | ||
| 293 | if (ctx->state != PSD_STATE_DONE) { | 293 | if (ctx->state != PSD_STATE_DONE) { |
| 294 | g_set_error ( | 294 | g_set_error_literal ( |
| 295 | error, | 295 | error, |
| 296 | GDK_PIXBUF_ERROR, | 296 | GDK_PIXBUF_ERROR, |
| 297 | GDK_PIXBUF_ERROR_CORRUPT_IMAGE, | 297 | GDK_PIXBUF_ERROR_CORRUPT_IMAGE, |
| @@ -343,14 +343,14 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, | |||
| 343 | && ctx->color_mode != PSD_MODE_CMYK | 343 | && ctx->color_mode != PSD_MODE_CMYK |
| 344 | && ctx->color_mode != PSD_MODE_DUOTONE | 344 | && ctx->color_mode != PSD_MODE_DUOTONE |
| 345 | ) { | 345 | ) { |
| 346 | g_set_error (error, GDK_PIXBUF_ERROR, | 346 | g_set_error_literal (error, GDK_PIXBUF_ERROR, |
| 347 | GDK_PIXBUF_ERROR_UNKNOWN_TYPE, | 347 | GDK_PIXBUF_ERROR_UNKNOWN_TYPE, |
| 348 | ("Unsupported color mode")); | 348 | ("Unsupported color mode")); |
| 349 | return FALSE; | 349 | return FALSE; |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | if (ctx->depth != 8 && ctx->depth != 16) { | 352 | if (ctx->depth != 8 && ctx->depth != 16) { |
| 353 | g_set_error (error, GDK_PIXBUF_ERROR, | 353 | g_set_error_literal (error, GDK_PIXBUF_ERROR, |
| 354 | GDK_PIXBUF_ERROR_UNKNOWN_TYPE, | 354 | GDK_PIXBUF_ERROR_UNKNOWN_TYPE, |
| 355 | ("Unsupported color depth")); | 355 | ("Unsupported color depth")); |
| 356 | return FALSE; | 356 | return FALSE; |
| @@ -380,7 +380,7 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, | |||
| 380 | if (ctx->lines_lengths == NULL || ctx->buffer == NULL || | 380 | if (ctx->lines_lengths == NULL || ctx->buffer == NULL || |
| 381 | ctx->pixbuf == NULL) | 381 | ctx->pixbuf == NULL) |
| 382 | { | 382 | { |
| 383 | g_set_error (error, GDK_PIXBUF_ERROR, | 383 | g_set_error_literal (error, GDK_PIXBUF_ERROR, |
| 384 | GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, | 384 | GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, |
| 385 | ("Insufficient memory to load PSD image file")); | 385 | ("Insufficient memory to load PSD image file")); |
| 386 | return FALSE; | 386 | return FALSE; |
| @@ -393,7 +393,7 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, | |||
| 393 | g_malloc(ctx->width*ctx->height*ctx->depth_bytes); | 393 | g_malloc(ctx->width*ctx->height*ctx->depth_bytes); |
| 394 | 394 | ||
| 395 | if (ctx->ch_bufs[i] == NULL) { | 395 | if (ctx->ch_bufs[i] == NULL) { |
| 396 | g_set_error (error, GDK_PIXBUF_ERROR, | 396 | g_set_error_literal (error, GDK_PIXBUF_ERROR, |
| 397 | GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, | 397 | GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, |
| 398 | ("Insufficient memory to load PSD image file")); | 398 | ("Insufficient memory to load PSD image file")); |
| 399 | return FALSE; | 399 | return FALSE; |
| @@ -436,7 +436,7 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, | |||
| 436 | ctx->state = PSD_STATE_CHANNEL_DATA; | 436 | ctx->state = PSD_STATE_CHANNEL_DATA; |
| 437 | reset_context_buffer(ctx); | 437 | reset_context_buffer(ctx); |
| 438 | } else { | 438 | } else { |
| 439 | g_set_error (error, GDK_PIXBUF_ERROR, | 439 | g_set_error_literal (error, GDK_PIXBUF_ERROR, |
| 440 | GDK_PIXBUF_ERROR_UNKNOWN_TYPE, | 440 | GDK_PIXBUF_ERROR_UNKNOWN_TYPE, |
| 441 | ("Unsupported compression type")); | 441 | ("Unsupported compression type")); |
| 442 | return FALSE; | 442 | return FALSE; |
