summaryrefslogtreecommitdiff
path: root/gdk/gdkimage.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-09-25 07:23:55 +0000
committerManish Singh <yosh@src.gnome.org>2002-09-25 07:23:55 +0000
commit234e191c1c78e4a0d77d99403b40acfc7f248f60 (patch)
tree7d60426b2d560c7c11f5ef83c25de984ed00e10f /gdk/gdkimage.c
parentde4cf94bc273c379cee8e4d04fdd1bb3628de5f9 (diff)
downloadgtk+-234e191c1c78e4a0d77d99403b40acfc7f248f60.tar.gz
add -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile
Wed Sep 25 00:16:53 2002 Manish Singh <yosh@gimp.org> * gdk/Makefile.am gdk/x11/Makefile.am: add -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile flags * gdk/gdkcolor.c gdk/gdkdisplay.c gdk/gdkdraw.c gdk/gdkevents.c gdk/gdkgc.c gdk/gdkimage.c gdk/gdkpango.c gdk/gdkpixbuf-render.c gdk/gdkpixmap.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/linux-fb/gdkdnd-fb.c gdk/linux-fb/gdkfont-fb.c gdk/win32/gdkdnd-win32.c gdk/win32/gdkfont-win32.c gdk/x11/gdkdisplay-x11.c gdk/x11/gdkdnd-x11.c gdk/x11/gdkdrawable-x11.c gdk/x11/gdkevents-x11.c gdk/x11/gdkfont-x11.c gdk/x11/gdkgc-x11.c gdk/x11/gdkgeometry-x11.c gdk/x11/gdkim-x11.c gdk/x11/gdkinput-x11.c gdk/x11/gdkkeys-x11.c gdk/x11/gdkscreen-x11.c gdk/x11/gdkwindow-x11.c: Deprecation cleanup, mostly changing gdk_foo_{ref,unref} to g_object equivalents.
Diffstat (limited to 'gdk/gdkimage.c')
-rw-r--r--gdk/gdkimage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdk/gdkimage.c b/gdk/gdkimage.c
index 1d1c09c5ef..61ac976bd7 100644
--- a/gdk/gdkimage.c
+++ b/gdk/gdkimage.c
@@ -43,7 +43,7 @@
GdkImage *
gdk_image_ref (GdkImage *image)
{
- return (GdkImage *) g_object_ref (G_OBJECT (image));
+ return (GdkImage *) g_object_ref (image);
}
/**
@@ -58,7 +58,7 @@ gdk_image_unref (GdkImage *image)
{
g_return_if_fail (GDK_IS_IMAGE (image));
- g_object_unref (G_OBJECT (image));
+ g_object_unref (image);
}
/**
@@ -113,10 +113,10 @@ gdk_image_set_colormap (GdkImage *image,
if (image->colormap != colormap)
{
if (image->colormap)
- g_object_unref (G_OBJECT (image->colormap));
+ g_object_unref (image->colormap);
image->colormap = colormap;
- g_object_ref (G_OBJECT (image->colormap));
+ g_object_ref (image->colormap);
}
}
@@ -215,7 +215,7 @@ allocate_scratch_images (GdkScratchImageInfo *info,
gint j;
for (j = 0; j < i; j++)
- gdk_image_unref (info->static_image[i]);
+ g_object_unref (info->static_image[i]);
return FALSE;
}