X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93763ad5ba900aecb9220a36ebe7447313ea3e31..b2b510728e3d5bc585a534563d013394d647caaf:/src/gtk/bmpbuttn.cpp diff --git a/src/gtk/bmpbuttn.cpp b/src/gtk/bmpbuttn.cpp index 656db887dc..6ec496ea1a 100644 --- a/src/gtk/bmpbuttn.cpp +++ b/src/gtk/bmpbuttn.cpp @@ -125,7 +125,6 @@ bool wxBitmapButton::Create( wxWindow *parent, const wxString &name ) { m_needParent = true; - m_acceptsFocus = true; if (!PreCreation( parent, pos, size ) || !CreateBase( parent, id, pos, size, style, validator, name )) @@ -196,7 +195,7 @@ void wxBitmapButton::OnSetBitmap() InvalidateBestSize(); wxBitmap the_one; - if (!m_isEnabled) + if (!IsThisEnabled()) the_one = m_bmpDisabled; else if (m_isSelected) the_one = m_bmpSelected;