X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2352862a7ee8440fdc2ae65baff31b73e40179d5..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/motif/bmpbuttn.cpp diff --git a/src/motif/bmpbuttn.cpp b/src/motif/bmpbuttn.cpp index 0ba91fd8fd..1246d1de9d 100644 --- a/src/motif/bmpbuttn.cpp +++ b/src/motif/bmpbuttn.cpp @@ -30,8 +30,6 @@ void wxButtonCallback (Widget w, XtPointer clientData, XtPointer ptr); // Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap ); -IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton) - wxBitmapButton::wxBitmapButton() { m_marginX = m_marginY = wxDEFAULT_BUTTON_MARGIN; @@ -89,7 +87,7 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id, if( size.y != -1 ) best.y = size.y; PostCreation(); - DoSetBitmap(); + OnSetBitmap(); AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, best.x, best.y); @@ -222,7 +220,7 @@ void wxBitmapButton::ChangeBackgroundColour() wxDoChangeBackgroundColour(m_mainWidget, m_backgroundColour, true); // Must reset the bitmaps since the colours have changed. - DoSetBitmap(); + OnSetBitmap(); } wxSize wxBitmapButton::DoGetBestSize() const