diff --git a/include/wx/gtk/textctrl.h b/include/wx/gtk/textctrl.h index 743e3db31a..0448f66191 100644 --- a/include/wx/gtk/textctrl.h +++ b/include/wx/gtk/textctrl.h @@ -105,6 +105,14 @@ public: virtual wxTextProofOptions GetProofCheckOptions() const override; #endif // wxUSE_SPELLCHECK && __WXGTK3__ + // GTK-specific functions + + // Get the underlying text buffer for multi-line controls. + GtkTextBuffer *GTKGetTextBuffer() { return IsMultiLine() ? m_buffer : nullptr; } + // Get the underlying text control. + GtkEditable *GTKGetEditable() const { return GetEditable(); } + + // Implementation from now on void OnDropFiles( wxDropFilesEvent &event ); void OnChar( wxKeyEvent &event ); @@ -188,11 +196,6 @@ protected: void GTKSetWrapMode(); void GTKSetJustification(); - // get the underlying text buffer for multi-line controls, or null otherwise - GtkTextBuffer *GTKGetTextBuffer() { return IsMultiLine() ? m_buffer : nullptr; } - // get the underlying text control - GtkEditable *GTKGetEditable() const { return GetEditable(); } - private: void Init();