wxMask::~wxMask()
{
if (m_bitmap)
- gdk_bitmap_unref( m_bitmap );
+ gdk_drawable_unref( m_bitmap );
}
bool wxMask::Create( const wxBitmap& bitmap,
{
if (m_bitmap)
{
- gdk_bitmap_unref( m_bitmap );
+ gdk_drawable_unref( m_bitmap );
m_bitmap = (GdkBitmap*) NULL;
}
{
if (m_bitmap)
{
- gdk_bitmap_unref( m_bitmap );
+ gdk_drawable_unref( m_bitmap );
m_bitmap = (GdkBitmap*) NULL;
}
wxBitmapRefData::~wxBitmapRefData()
{
if (m_pixmap)
- gdk_pixmap_unref( m_pixmap );
+ gdk_drawable_unref( m_pixmap );
if (m_bitmap)
- gdk_bitmap_unref( m_bitmap );
+ gdk_drawable_unref( m_bitmap );
if (m_pixbuf)
gdk_pixbuf_unref( m_pixbuf );
delete m_mask;
}
if (keep == Pixbuf && HasPixmap())
{
- gdk_pixmap_unref( M_BMPDATA->m_pixmap );
+ gdk_drawable_unref( M_BMPDATA->m_pixmap );
M_BMPDATA->m_pixmap = NULL;
}
}
data, mask, fg->GetColor(), bg->GetColor(),
hotSpotX, hotSpotY );
- gdk_bitmap_unref( data );
- gdk_bitmap_unref( mask );
+ gdk_drawable_unref( data );
+ gdk_drawable_unref( mask );
}
#if wxUSE_IMAGE
hotSpotX, hotSpotY
);
- gdk_bitmap_unref( data );
- gdk_bitmap_unref( mask );
+ gdk_drawable_unref( data );
+ gdk_drawable_unref( mask );
delete [] bits;
delete [] maskBits;
}
gdk_draw_drawable( m_window, m_textGC, bitmap2, 0, 0, xx, yy, -1, -1 );
- gdk_bitmap_unref( bitmap2 );
+ gdk_drawable_unref( bitmap2 );
gdk_gc_unref( gc );
}
else
}
if (new_mask)
- gdk_bitmap_unref( new_mask );
+ gdk_drawable_unref( new_mask );
}
bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest,
gdk_draw_drawable( m_window, m_textGC, bitmap, xsrc, ysrc, cx, cy, cw, ch );
- gdk_bitmap_unref( bitmap );
+ gdk_drawable_unref( bitmap );
gdk_gc_unref( gc );
}
else
}
if (new_mask)
- gdk_bitmap_unref( new_mask );
+ gdk_drawable_unref( new_mask );
}
else // use_bitmap_method
{
);
GtkWidget *pw = gtk_pixmap_new( pixmap, mask );
- gdk_bitmap_unref( mask );
- gdk_pixmap_unref( pixmap );
+ gdk_drawable_unref( mask );
+ gdk_drawable_unref( pixmap );
gtk_widget_show( pw );
GtkWidget *close_button = gtk_button_new();