summaryrefslogtreecommitdiff
path: root/gdk/gdkpixbuf-render.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/gdkpixbuf-render.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/gdkpixbuf-render.c')
-rw-r--r--gdk/gdkpixbuf-render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdkpixbuf-render.c b/gdk/gdkpixbuf-render.c
index 99156f7ea9..08ef3c4f33 100644
--- a/gdk/gdkpixbuf-render.c
+++ b/gdk/gdkpixbuf-render.c
@@ -89,7 +89,7 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
color.pixel = (alpha_threshold == 255) ? 0 : 1;
gdk_gc_set_foreground (gc, &color);
gdk_draw_rectangle (bitmap, gc, TRUE, dest_x, dest_y, width, height);
- gdk_gc_unref (gc);
+ g_object_unref (gc);
return;
}
@@ -132,7 +132,7 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
x - 1 + dest_x, y + dest_y);
}
- gdk_gc_unref (gc);
+ g_object_unref (gc);
}
@@ -329,7 +329,7 @@ gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf,
gdk_pixbuf_get_width (pixbuf), gdk_pixbuf_get_height (pixbuf),
GDK_RGB_DITHER_NORMAL,
0, 0);
- gdk_gc_unref (gc);
+ g_object_unref (gc);
}
if (mask_return)