git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38546
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxMask::~wxMask()
{
if (m_bitmap)
wxMask::~wxMask()
{
if (m_bitmap)
- gdk_bitmap_unref( m_bitmap );
+ gdk_drawable_unref( m_bitmap );
}
bool wxMask::Create( const wxBitmap& bitmap,
}
bool wxMask::Create( const wxBitmap& bitmap,
- gdk_bitmap_unref( m_bitmap );
+ gdk_drawable_unref( m_bitmap );
m_bitmap = (GdkBitmap*) NULL;
}
m_bitmap = (GdkBitmap*) NULL;
}
- gdk_bitmap_unref( m_bitmap );
+ gdk_drawable_unref( m_bitmap );
m_bitmap = (GdkBitmap*) NULL;
}
m_bitmap = (GdkBitmap*) NULL;
}
wxBitmapRefData::~wxBitmapRefData()
{
if (m_pixmap)
wxBitmapRefData::~wxBitmapRefData()
{
if (m_pixmap)
- gdk_pixmap_unref( m_pixmap );
+ gdk_drawable_unref( m_pixmap );
- gdk_bitmap_unref( m_bitmap );
+ gdk_drawable_unref( m_bitmap );
if (m_pixbuf)
gdk_pixbuf_unref( m_pixbuf );
delete m_mask;
if (m_pixbuf)
gdk_pixbuf_unref( m_pixbuf );
delete m_mask;
}
if (keep == Pixbuf && HasPixmap())
{
}
if (keep == Pixbuf && HasPixmap())
{
- gdk_pixmap_unref( M_BMPDATA->m_pixmap );
+ gdk_drawable_unref( M_BMPDATA->m_pixmap );
M_BMPDATA->m_pixmap = NULL;
}
}
M_BMPDATA->m_pixmap = NULL;
}
}
data, mask, fg->GetColor(), bg->GetColor(),
hotSpotX, hotSpotY );
data, mask, fg->GetColor(), bg->GetColor(),
hotSpotX, hotSpotY );
- gdk_bitmap_unref( data );
- gdk_bitmap_unref( mask );
+ gdk_drawable_unref( data );
+ gdk_drawable_unref( mask );
- gdk_bitmap_unref( data );
- gdk_bitmap_unref( mask );
+ gdk_drawable_unref( data );
+ gdk_drawable_unref( mask );
delete [] bits;
delete [] maskBits;
}
delete [] bits;
delete [] maskBits;
}
gdk_draw_drawable( m_window, m_textGC, bitmap2, 0, 0, xx, yy, -1, -1 );
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
gdk_gc_unref( gc );
}
else
- gdk_bitmap_unref( new_mask );
+ gdk_drawable_unref( new_mask );
}
bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest,
}
bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest,
gdk_draw_drawable( m_window, m_textGC, bitmap, xsrc, ysrc, cx, cy, cw, ch );
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
gdk_gc_unref( gc );
}
else
- gdk_bitmap_unref( new_mask );
+ gdk_drawable_unref( new_mask );
}
else // use_bitmap_method
{
}
else // use_bitmap_method
{
);
GtkWidget *pw = gtk_pixmap_new( pixmap, mask );
);
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();
gtk_widget_show( pw );
GtkWidget *close_button = gtk_button_new();