diff options
author | Manish Singh <yosh@gimp.org> | 2002-09-25 07:23:55 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-09-25 07:23:55 +0000 |
commit | 234e191c1c78e4a0d77d99403b40acfc7f248f60 (patch) | |
tree | 7d60426b2d560c7c11f5ef83c25de984ed00e10f /gdk/gdkpixmap.c | |
parent | de4cf94bc273c379cee8e4d04fdd1bb3628de5f9 (diff) | |
download | gtk+-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/gdkpixmap.c')
-rw-r--r-- | gdk/gdkpixmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdk/gdkpixmap.c b/gdk/gdkpixmap.c index 6327c21a53..a6004b55f7 100644 --- a/gdk/gdkpixmap.c +++ b/gdk/gdkpixmap.c @@ -215,7 +215,7 @@ gdk_pixmap_finalize (GObject *object) { GdkPixmapObject *obj = (GdkPixmapObject *) object; - g_object_unref (G_OBJECT (obj->impl)); + g_object_unref (obj->impl); obj->impl = NULL; G_OBJECT_CLASS (parent_class)->finalize (object); @@ -491,7 +491,7 @@ make_solid_mask (GdkScreen *screen, gint width, gint height) gdk_draw_rectangle (bitmap, gc, TRUE, 0, 0, width, height); - gdk_gc_unref (gc); + g_object_unref (gc); return bitmap; } @@ -532,10 +532,10 @@ gdk_pixmap_colormap_new_from_pixbuf (GdkColormap *colormap, gdk_pixbuf_get_width (render_pixbuf), gdk_pixbuf_get_height (render_pixbuf), GDK_RGB_DITHER_NORMAL, 0, 0); - gdk_gc_unref (tmp_gc); + g_object_unref (tmp_gc); if (render_pixbuf != pixbuf) - gdk_pixbuf_unref (render_pixbuf); + g_object_unref (render_pixbuf); if (mask) gdk_pixbuf_render_pixmap_and_mask_for_colormap (pixbuf, colormap, NULL, mask, 128); @@ -571,7 +571,7 @@ gdk_pixmap_colormap_create_from_xpm (GdkWindow *window, pixmap = gdk_pixmap_colormap_new_from_pixbuf (colormap, mask, transparent_color, pixbuf); - gdk_pixbuf_unref (pixbuf); + g_object_unref (pixbuf); return pixmap; } @@ -609,7 +609,7 @@ gdk_pixmap_colormap_create_from_xpm_d (GdkWindow *window, pixmap = gdk_pixmap_colormap_new_from_pixbuf (colormap, mask, transparent_color, pixbuf); - gdk_pixbuf_unref (pixbuf); + g_object_unref (pixbuf); return pixmap; } |