From 1a3a1b2df2dbf163fee78cdd779fbf17ecc25dc8 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Tue, 4 Apr 2006 14:44:06 +0000 Subject: [PATCH] gdk_pixbuf_unref -> g_object_unref git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/artgtk.cpp | 2 +- src/gtk/bitmap.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gtk/artgtk.cpp b/src/gtk/artgtk.cpp index 8cdcb39bf7..c31b1c8c8e 100644 --- a/src/gtk/artgtk.cpp +++ b/src/gtk/artgtk.cpp @@ -273,7 +273,7 @@ wxBitmap wxGTK2ArtProvider::CreateBitmap(const wxArtID& id, GDK_INTERP_BILINEAR); if (p2) { - gdk_pixbuf_unref(pixbuf); + g_object_unref (G_OBJECT (pixbuf)); pixbuf = p2; } } diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 47dbc17fc5..07d4a143aa 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -261,7 +261,7 @@ wxBitmapRefData::~wxBitmapRefData() if (m_bitmap) g_object_unref (G_OBJECT (m_bitmap)); if (m_pixbuf) - gdk_pixbuf_unref( m_pixbuf ); + g_object_unref (G_OBJECT (m_pixbuf)); delete m_mask; #if wxUSE_PALETTE delete m_palette; @@ -1485,7 +1485,7 @@ GdkPixbuf *wxBitmap::GetPixbuf() const } } - gdk_pixbuf_unref(pmask); + g_object_unref (G_OBJECT (pmask)); } } } @@ -1513,7 +1513,7 @@ void wxBitmap::PurgeOtherRepresentations(wxBitmap::Representation keep) { if (keep == Pixmap && HasPixbuf()) { - gdk_pixbuf_unref( M_BMPDATA->m_pixbuf ); + g_object_unref (G_OBJECT (M_BMPDATA->m_pixbuf)); M_BMPDATA->m_pixbuf = NULL; } if (keep == Pixbuf && HasPixmap())