-bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap,
- const wxPoint &pos, const wxSize &size,
- long style, const wxString &name )
+void wxStaticBitmap::CreatePixmapWidget()
+{
+ wxCHECK_RET( m_bitmap.Ok(), wxT("should only be called if we have a bitmap") );
+
+ GdkBitmap *mask = (GdkBitmap *) NULL;
+ if ( m_bitmap.GetMask() )
+ mask = m_bitmap.GetMask()->GetBitmap();
+ m_widget = gtk_pixmap_new( m_bitmap.GetPixmap(), mask );
+
+ // insert GTK representation
+ (*m_parent->m_insertCallback)(m_parent, this);
+
+ gtk_widget_show( m_widget );
+
+ m_focusWidget = m_widget;
+
+ PostCreation();
+}
+
+bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap,
+ const wxPoint &pos, const wxSize &size,
+ long style, const wxString &name )