summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-data.c
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>2000-02-14 20:06:23 +0000
committerElliot Lee <sopwith@src.gnome.org>2000-02-14 20:06:23 +0000
commit2205f9c5207eb0a371b5eceb560d7699ef972f0b (patch)
treed934781f812533fc7e146bafe78da41e94932a46 /gdk-pixbuf/gdk-pixbuf-data.c
parent8c3a98565418dcd447131981305e4dd7f452bf68 (diff)
downloadgdk-pixbuf-2205f9c5207eb0a371b5eceb560d7699ef972f0b.tar.gz
Make passed-in argument 'const'.
* gdk-pixbuf/gdk-pixbuf.h, gdk-pixbuf/gdk-pixbuf-data.c: Make passed-in argument 'const'.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-data.c')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-data.c b/gdk-pixbuf/gdk-pixbuf-data.c
index 4c3bd3610..247a67e4f 100644
--- a/gdk-pixbuf/gdk-pixbuf-data.c
+++ b/gdk-pixbuf/gdk-pixbuf-data.c
@@ -43,7 +43,7 @@
* 1.
**/
GdkPixbuf *
-gdk_pixbuf_new_from_data (guchar *data, ArtPixFormat format, gboolean has_alpha,
+gdk_pixbuf_new_from_data (const guchar *data, ArtPixFormat format, gboolean has_alpha,
int width, int height, int rowstride,
ArtDestroyNotify dfunc, gpointer dfunc_data)
{
@@ -57,10 +57,10 @@ gdk_pixbuf_new_from_data (guchar *data, ArtPixFormat format, gboolean has_alpha,
g_return_val_if_fail (height > 0, NULL);
if (has_alpha)
- art_pixbuf = art_pixbuf_new_rgba_dnotify (data, width, height, rowstride,
+ art_pixbuf = art_pixbuf_new_rgba_dnotify ((art_u8 *)data, width, height, rowstride,
dfunc_data, dfunc);
else
- art_pixbuf = art_pixbuf_new_rgb_dnotify (data, width, height, rowstride,
+ art_pixbuf = art_pixbuf_new_rgb_dnotify ((art_u8 *)data, width, height, rowstride,
dfunc_data, dfunc);
g_assert (art_pixbuf != NULL);