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/gdk-pixbuf-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/gdk-pixbuf-animation.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-animation.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c index 274813c503..4da08f976a 100644 --- a/gdk-pixbuf/gdk-pixbuf-animation.c +++ b/gdk-pixbuf/gdk-pixbuf-animation.c @@ -211,7 +211,7 @@ gdk_pixbuf_animation_new_from_file (const char *filename, animation = gdk_pixbuf_non_anim_new (pixbuf); - g_object_unref (G_OBJECT (pixbuf)); + g_object_unref (pixbuf); } else { fseek (f, 0, SEEK_SET); animation = (* image_module->load_animation) (f, error); @@ -617,7 +617,7 @@ gdk_pixbuf_non_anim_finalize (GObject *object) GdkPixbufNonAnim *non_anim = GDK_PIXBUF_NON_ANIM (object); if (non_anim->pixbuf) - g_object_unref (G_OBJECT (non_anim->pixbuf)); + g_object_unref (non_anim->pixbuf); G_OBJECT_CLASS (non_parent_class)->finalize (object); } @@ -632,7 +632,7 @@ gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf) non_anim->pixbuf = pixbuf; if (pixbuf) - g_object_ref (G_OBJECT (pixbuf)); + g_object_ref (pixbuf); return GDK_PIXBUF_ANIMATION (non_anim); } @@ -681,7 +681,7 @@ gdk_pixbuf_non_anim_get_iter (GdkPixbufAnimation *anim, iter->non_anim = GDK_PIXBUF_NON_ANIM (anim); - g_object_ref (G_OBJECT (iter->non_anim)); + g_object_ref (iter->non_anim); return GDK_PIXBUF_ANIMATION_ITER (iter); } @@ -750,7 +750,7 @@ gdk_pixbuf_non_anim_iter_finalize (GObject *object) { GdkPixbufNonAnimIter *iter = GDK_PIXBUF_NON_ANIM_ITER (object); - g_object_unref (G_OBJECT (iter->non_anim)); + g_object_unref (iter->non_anim); G_OBJECT_CLASS (non_iter_parent_class)->finalize (object); } |