-bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap,
- const wxPoint &pos, const wxSize &size,
- long style, const wxString &name )
+bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap,
+ const wxPoint &pos, const wxSize &size,
+ long style, const wxString &name )
+{
+ m_needParent = TRUE;
+
+ if (!PreCreation( parent, pos, size ) ||
+ !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
+ {
+ wxFAIL_MSG( wxT("wxStaticBitmap creation failed") );
+ return false;
+ }
+
+ m_bitmap = bitmap;
+
+ m_widget = gtk_image_new();
+
+ if (bitmap.Ok())
+ SetBitmap(bitmap);
+
+ PostCreation(size);
+ m_parent->DoAddChild( this );
+
+ return true;
+}
+
+void wxStaticBitmap::SetBitmap( const wxBitmap &bitmap )