X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/603e7f6d0ce0cb64b65f2401b0cdf0616f74e3e7..bb996f289574defb0ae4339ae8e46ff3cf6fa54c:/src/gtk/textctrl.cpp?ds=inline diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 95f27a18fd..dda27477f3 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -546,8 +546,6 @@ gtk_text_changed_callback( GtkWidget *WXUNUSED(widget), wxTextCtrl *win ) if ( win->IgnoreTextUpdate() ) return; - if (!win->m_hasVMT) return; - if ( win->MarkDirtyOnChange() ) win->MarkDirty(); @@ -607,12 +605,18 @@ void wxTextCtrl::Init() SetUpdateFont(false); m_text = NULL; + m_buffer = NULL; m_showPositionOnThaw = NULL; m_anonymousMarkList = NULL; } wxTextCtrl::~wxTextCtrl() { + if (m_text) + GTKDisconnect(m_text); + if (m_buffer) + GTKDisconnect(m_buffer); + // this is also done by wxWindowGTK dtor, but has to be done here so our // DoThaw() override is called while (IsFrozen())