From d99bd97fe86bc13dbb483e174722eb68e916781f Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Thu, 13 Dec 2001 21:22:12 +0000 Subject: Remove assorted G_OBJECT casts where unnecessary. 2001-12-13 Sebastian Wilhelmi * gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c, io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove assorted G_OBJECT casts where unnecessary. * gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref resp. * gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c, io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and gdk_pixbuf_unref. * Makefile.am, pixops/Makefile.am: Compile everything with -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED * gdk-pixdata.c: Use g_ascii_strup() instead of g_strup(). * io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp(). * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c, demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref resp. --- gdk-pixbuf/io-bmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdk-pixbuf/io-bmp.c') diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c index 225cbde343..4285b5ac58 100644 --- a/gdk-pixbuf/io-bmp.c +++ b/gdk-pixbuf/io-bmp.c @@ -225,7 +225,7 @@ static GdkPixbuf *gdk_pixbuf__bmp_image_load(FILE * f, GError **error) } if (State->pixbuf != NULL) - gdk_pixbuf_ref(State->pixbuf); + g_object_ref(State->pixbuf); pb = State->pixbuf; @@ -516,7 +516,7 @@ static gboolean gdk_pixbuf__bmp_image_stop_load(gpointer data, GError **error) g_free(context->Colormap); if (context->pixbuf) - gdk_pixbuf_unref(context->pixbuf); + g_object_unref(context->pixbuf); g_free(context->buff); g_free(context); -- cgit v1.2.1