[gdk-pixbuf: 19/24] io-pnm.c: Don't use gdk-pixbuf-private.h



commit dbd120ccccde634fdc9323d879b5f3da58b3ff3f
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon May 14 19:05:17 2018 -0500

    io-pnm.c: Don't use gdk-pixbuf-private.h

 gdk-pixbuf/io-pnm.c | 7 ++++---
 1 file 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]