Move logic from GTK callback to GTKOnTextChanged() virtual method

Check whether we should ignore the event and mark the control as being
dirty if necessary in a virtual method, which can be defined in
wxTextEntry and overridden by wxTextCtrl, instead of doing it in GTK
callback itself.

This will allow to reuse wxTextEntry callback for wxTextCtrl too in the
upcoming commits.

No real changes so far.
This commit is contained in:
Vadim Zeitlin
2019-07-08 15:58:12 +02:00
parent c75067f0b4
commit c024944d78
3 changed files with 20 additions and 7 deletions

View File

@@ -142,6 +142,8 @@ public:
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
void GTKOnTextChanged() wxOVERRIDE;
protected:
// overridden wxWindow virtual methods
virtual wxSize DoGetBestSize() const wxOVERRIDE;