Fix wxGTK1 build after wxBitmapBundle changes in wxStaticBitmap
This should have been done in 3abec9254f (Take wxBitmapBundle in
wxStaticBitmap::SetBitmap(), 2021-10-21) but was forgotten there.
This commit is contained in:
@@ -34,7 +34,7 @@ public:
|
|||||||
long style = 0,
|
long style = 0,
|
||||||
const wxString& name = wxASCII_STR(wxStaticBitmapNameStr));
|
const wxString& name = wxASCII_STR(wxStaticBitmapNameStr));
|
||||||
|
|
||||||
virtual void SetBitmapBundle( const wxBitmapBundle& bitmap );
|
virtual void SetBitmap( const wxBitmapBundle& bitmap );
|
||||||
|
|
||||||
static wxVisualAttributes
|
static wxVisualAttributes
|
||||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||||
|
|||||||
@@ -51,14 +51,14 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmapBund
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_bitmap = bitmap;
|
|
||||||
m_bitmapBundle = bitmap;
|
|
||||||
|
|
||||||
wxBitmap bmp(bitmap.IsOk() ? bitmap : wxBitmap(bogus_xpm));
|
|
||||||
m_widget = gtk_pixmap_new(bmp.GetPixmap(), NULL);
|
|
||||||
|
|
||||||
if (bitmap.IsOk())
|
if (bitmap.IsOk())
|
||||||
SetBitmap(bitmap);
|
{
|
||||||
|
m_bitmap = bitmap.GetBitmapFor(this);
|
||||||
|
m_bitmapBundle = bitmap;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxBitmap bmp(m_bitmap.IsOk() ? m_bitmap : wxBitmap(bogus_xpm));
|
||||||
|
m_widget = gtk_pixmap_new(bmp.GetPixmap(), NULL);
|
||||||
|
|
||||||
PostCreation(size);
|
PostCreation(size);
|
||||||
m_parent->DoAddChild( this );
|
m_parent->DoAddChild( this );
|
||||||
|
|||||||
Reference in New Issue
Block a user