diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 2001-12-13 21:22:12 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 2001-12-13 21:22:12 +0000 |
commit | d99bd97fe86bc13dbb483e174722eb68e916781f (patch) | |
tree | db4c4a56f167c57efd6de8da7cc119201cef2570 /gdk-pixbuf/io-gif-animation.c | |
parent | d3403353cbd651a18264c4c28044c6c78c49b938 (diff) | |
download | gtk+-d99bd97fe86bc13dbb483e174722eb68e916781f.tar.gz |
Remove assorted G_OBJECT casts where unnecessary.
2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* 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.
Diffstat (limited to 'gdk-pixbuf/io-gif-animation.c')
-rw-r--r-- | gdk-pixbuf/io-gif-animation.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdk-pixbuf/io-gif-animation.c b/gdk-pixbuf/io-gif-animation.c index d334cc421e..0a3ce6b70c 100644 --- a/gdk-pixbuf/io-gif-animation.c +++ b/gdk-pixbuf/io-gif-animation.c @@ -97,11 +97,11 @@ gdk_pixbuf_gif_anim_finalize (GObject *object) for (l = gif_anim->frames; l; l = l->next) { frame = l->data; - gdk_pixbuf_unref (frame->pixbuf); + g_object_unref (frame->pixbuf); if (frame->composited) - gdk_pixbuf_unref (frame->composited); + g_object_unref (frame->composited); if (frame->revert) - gdk_pixbuf_unref (frame->revert); + g_object_unref (frame->revert); g_free (frame); } @@ -175,7 +175,7 @@ gdk_pixbuf_gif_anim_get_iter (GdkPixbufAnimation *anim, iter->gif_anim = GDK_PIXBUF_GIF_ANIM (anim); - g_object_ref (G_OBJECT (iter->gif_anim)); + g_object_ref (iter->gif_anim); iter_restart (iter); @@ -250,7 +250,7 @@ gdk_pixbuf_gif_anim_iter_finalize (GObject *object) iter_clear (iter); - g_object_unref (G_OBJECT (iter->gif_anim)); + g_object_unref (iter->gif_anim); G_OBJECT_CLASS (iter_parent_class)->finalize (object); } @@ -356,7 +356,7 @@ gdk_pixbuf_gif_anim_frame_composite (GdkPixbufGifAnim *gif_anim, if (f->need_recomposite) { if (f->composited) { - g_object_unref (G_OBJECT (f->composited)); + g_object_unref (f->composited); f->composited = NULL; } } @@ -376,7 +376,7 @@ gdk_pixbuf_gif_anim_frame_composite (GdkPixbufGifAnim *gif_anim, if (f->need_recomposite) { if (f->composited) { - g_object_unref (G_OBJECT (f->composited)); + g_object_unref (f->composited); f->composited = NULL; } } @@ -457,7 +457,7 @@ gdk_pixbuf_gif_anim_frame_composite (GdkPixbufGifAnim *gif_anim, (gif_anim->bg_blue << 8) | prev_frame->bg_transparent ? 0 : 255); - g_object_unref (G_OBJECT (area)); + g_object_unref (area); } else if (prev_frame->action == GDK_PIXBUF_FRAME_REVERT) { f->composited = gdk_pixbuf_copy (prev_frame->composited); @@ -487,7 +487,7 @@ gdk_pixbuf_gif_anim_frame_composite (GdkPixbufGifAnim *gif_anim, f->revert = gdk_pixbuf_copy (area); - g_object_unref (G_OBJECT (area)); + g_object_unref (area); } /* Put current frame onto f->composited */ |