]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
Bump version.
[wxWidgets.git] / src / gtk / textctrl.cpp
index f10fd64e01a96af2e971b5251ed13c71f94f538b..cf14bf7797c23fe43825ff76cc3b1aafdde83425 100644 (file)
@@ -821,6 +821,14 @@ wxFontEncoding wxTextCtrl::GetTextEncoding() const
     return enc;
 }
 
+bool wxTextCtrl::IsEmpty() const
+{
+    if ( IsMultiLine() )
+        return gtk_text_buffer_get_char_count(m_buffer) != 0;
+
+    return wxTextCtrlBase::IsEmpty();
+}
+
 void wxTextCtrl::DoSetValue( const wxString &value, int flags )
 {
     wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") );