From: Mart Raudsepp Date: Tue, 4 Apr 2006 14:57:45 +0000 (+0000) Subject: gdk_image_destroy -> g_object_unref (gdk_image_destroy is deprecated in favor of... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4e84399d42f12c8c6153634312307b707b6a65ff gdk_image_destroy -> g_object_unref (gdk_image_destroy is deprecated in favor of gdk_image_unref, and is just a #define to it; gdk_image_unref deprecated in favor of g_object_unref) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 07d4a143aa..5899c2b1d1 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -484,7 +484,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight, dst[h*dstbyteperline+width/8] = outbyte; } - gdk_image_destroy( img ); + g_object_unref (G_OBJECT (img)); if (gc) g_object_unref (G_OBJECT (gc)); if ( dst ) @@ -543,7 +543,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight, bmp.SetMask(mask); free( dst ); - gdk_image_destroy( img ); + g_object_unref (G_OBJECT (img)); } free( tablex ); @@ -660,7 +660,7 @@ bool wxBitmap::CreateFromImageAsBitmap(const wxImage& img) gdk_draw_image( GetBitmap(), data_gc, data_image, 0, 0, 0, 0, width, height ); - gdk_image_destroy( data_image ); + g_object_unref (G_OBJECT (data_image)); g_object_unref (G_OBJECT (data_gc)); // Blit mask @@ -671,7 +671,7 @@ bool wxBitmap::CreateFromImageAsBitmap(const wxImage& img) gdk_draw_image( GetMask()->GetBitmap(), mask_gc, mask_image, 0, 0, 0, 0, width, height ); - gdk_image_destroy( mask_image ); + g_object_unref (G_OBJECT (mask_image)); g_object_unref (G_OBJECT (mask_gc)); } @@ -900,7 +900,7 @@ bool wxBitmap::CreateFromImageAsPixmap(const wxImage& img) gdk_draw_image( GetPixmap(), data_gc, data_image, 0, 0, 0, 0, width, height ); - gdk_image_destroy( data_image ); + g_object_unref (G_OBJECT (data_image)); g_object_unref (G_OBJECT (data_gc)); // Blit mask @@ -911,7 +911,7 @@ bool wxBitmap::CreateFromImageAsPixmap(const wxImage& img) gdk_draw_image( GetMask()->GetBitmap(), mask_gc, mask_image, 0, 0, 0, 0, width, height ); - gdk_image_destroy( mask_image ); + g_object_unref (G_OBJECT (mask_image)); g_object_unref (G_OBJECT (mask_gc)); } @@ -1136,8 +1136,8 @@ wxImage wxBitmap::ConvertToImage() const } } - gdk_image_destroy( gdk_image ); - if (gdk_image_mask) gdk_image_destroy( gdk_image_mask ); + g_object_unref (G_OBJECT (gdk_image)); + if (gdk_image_mask) g_object_unref (G_OBJECT (gdk_image_mask)); } return image;