Fix setting "pressed" bitmap for wxToggleButton.
Move wxAnyButton::GetNormalState(), which allows wxToggleButton to override what "normal" means for it, down to the platform-independent wxAnyButtonBase class and use it now in wxGTK as well to correctly choose the pressed bitmap for a toggle button in this state. Closes #16771.
This commit is contained in:
committed by
Vadim Zeitlin
parent
c0ae81ced7
commit
1ad4596e8c
@@ -46,8 +46,6 @@ public:
|
||||
virtual bool MSWCommand(WXUINT param, WXWORD id);
|
||||
virtual void Command(wxCommandEvent& event);
|
||||
|
||||
virtual State GetNormalState() const;
|
||||
|
||||
// returns true if the platform should explicitly apply a theme border
|
||||
virtual bool CanApplyThemeBorder() const { return false; }
|
||||
|
||||
|
Reference in New Issue
Block a user