diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index b0e2ef148a..4c1d1d901f 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -337,6 +337,7 @@ void wxTextCtrl::SetValue( const wxString &value ) { gtk_entry_set_text( GTK_ENTRY(m_text), tmp.mbc_str() ); } + m_modified = FALSE; } void wxTextCtrl::WriteText( const wxString &text ) diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index b0e2ef148a..4c1d1d901f 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -337,6 +337,7 @@ void wxTextCtrl::SetValue( const wxString &value ) { gtk_entry_set_text( GTK_ENTRY(m_text), tmp.mbc_str() ); } + m_modified = FALSE; } void wxTextCtrl::WriteText( const wxString &text )