diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2001-09-14 22:15:54 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2001-09-14 22:15:54 +0000 |
commit | 95d889aa6ef1908b0baa27dc07eafe36b789b50a (patch) | |
tree | ba248698f2906e68a93b414297d97dc8cf8b99fe /gdk-pixbuf/io-pnm.c | |
parent | 724d7ebeacc4a0aff16315d1284314d31c15b0cc (diff) | |
download | gdk-pixbuf-95d889aa6ef1908b0baa27dc07eafe36b789b50a.tar.gz |
io-pnm.c (pnm_read_header): Use GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
not GDK_PIXBUF_ERROR_HEADER_CORRUPT. (#58308)
Diffstat (limited to 'gdk-pixbuf/io-pnm.c')
-rw-r--r-- | gdk-pixbuf/io-pnm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c index eafe13093..455bd2f78 100644 --- a/gdk-pixbuf/io-pnm.c +++ b/gdk-pixbuf/io-pnm.c @@ -282,7 +282,7 @@ pnm_read_header (PnmLoaderContext *context) if (*inbuf->byte != 'P') { g_set_error (context->error, GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_HEADER_CORRUPT, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, _("PNM file has an incorrect initial byte")); return PNM_FATAL_ERR; } @@ -312,7 +312,7 @@ pnm_read_header (PnmLoaderContext *context) default: g_set_error (context->error, GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_HEADER_CORRUPT, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, _("PNM file is not in a recognized PNM subformat")); return PNM_FATAL_ERR; } @@ -337,7 +337,7 @@ pnm_read_header (PnmLoaderContext *context) if (!width) { g_set_error (context->error, GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_HEADER_CORRUPT, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, _("PNM file has an image width of 0")); return PNM_FATAL_ERR; } @@ -358,7 +358,7 @@ pnm_read_header (PnmLoaderContext *context) if (!height) { g_set_error (context->error, GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_HEADER_CORRUPT, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, _("PNM file has an image height of 0")); return PNM_FATAL_ERR; } @@ -381,7 +381,7 @@ pnm_read_header (PnmLoaderContext *context) if (context->maxval == 0) { g_set_error (context->error, GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_HEADER_CORRUPT, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, _("Maximum color value in PNM file is 0")); return PNM_FATAL_ERR; } @@ -389,7 +389,7 @@ pnm_read_header (PnmLoaderContext *context) if (context->maxval > 65535) { g_set_error (context->error, GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_HEADER_CORRUPT, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, _("Maximum color value in PNM file is too large")); return PNM_FATAL_ERR; } @@ -397,7 +397,7 @@ pnm_read_header (PnmLoaderContext *context) if (context->maxval > 255) { g_set_error (context->error, GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_HEADER_CORRUPT, + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, _("Can't handle PNM files with maximum color values greater than 255")); return PNM_FATAL_ERR; } |