+ // returns either m_text or m_buffer depending on whether the control is
+ // single- or multi-line; convenient for the GTK+ functions which work with
+ // both
+ void *GetTextObject() const
+ {
+ return IsMultiLine() ? wx_static_cast(void *, m_buffer)
+ : wx_static_cast(void *, m_text);
+ }
+