X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2352862a7ee8440fdc2ae65baff31b73e40179d5..404b319a85dadd7decf7a5a5331020520031a41c:/src/motif/bmpbuttn.cpp?ds=inline 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