summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2018-05-14 19:05:17 -0500
committerFederico Mena Quintero <federico@gnome.org>2018-06-01 18:47:33 -0500
commitdbd120ccccde634fdc9323d879b5f3da58b3ff3f (patch)
tree9cd616990dfed7eb0756fda9541a6fbb9a12e08d /gdk-pixbuf
parent4b9e9a9b2cfc11afbc34063a22ee33290f1e47d0 (diff)
downloadgdk-pixbuf-dbd120ccccde634fdc9323d879b5f3da58b3ff3f.tar.gz
io-pnm.c: Don't use gdk-pixbuf-private.h
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/io-pnm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c
index 149988922..d6f3e216c 100644
--- a/gdk-pixbuf/io-pnm.c
+++ b/gdk-pixbuf/io-pnm.c
@@ -25,7 +25,8 @@
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
-#include "gdk-pixbuf-private.h"
+#include <glib/gi18n-lib.h>
+#include "gdk-pixbuf-io.h"
#define PNM_BUF_SIZE 4096
@@ -781,7 +782,7 @@ gdk_pixbuf__pnm_image_load (FILE *f, GError **error)
return NULL;
}
- context.rowstride = context.pixbuf->rowstride;
+ context.rowstride = gdk_pixbuf_get_rowstride (context.pixbuf);
context.pixels = gdk_pixbuf_get_pixels (context.pixbuf);
}
@@ -1011,7 +1012,7 @@ gdk_pixbuf__pnm_image_load_increment (gpointer data,
}
context->pixels = gdk_pixbuf_get_pixels (context->pixbuf);
- context->rowstride = context->pixbuf->rowstride;
+ context->rowstride = gdk_pixbuf_get_rowstride (context->pixbuf);
/* Notify the client that we are ready to go */
if (context->prepared_func)