From: Vadim Zeitlin Date: Tue, 16 May 2006 23:58:20 +0000 (+0000) Subject: removed GTK-specific SetModified() as we already have a public MarkDirty() which... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/781acf8347ceb598bf83572274a303243746482e removed GTK-specific SetModified() as we already have a public MarkDirty() which does the same thing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/textctrl.h b/include/wx/gtk/textctrl.h index b801780273..26b6e3e8e4 100644 --- a/include/wx/gtk/textctrl.h +++ b/include/wx/gtk/textctrl.h @@ -144,8 +144,6 @@ public: void SetUpdateFont(bool WXUNUSED(update)) { } - void SetModified() { m_modified = true; } - // GTK+ textctrl is so dumb that you need to freeze/thaw it manually to // avoid horrible flicker/scrolling back and forth virtual void Freeze(); diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index a19bf33779..9211dde77c 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -454,7 +454,7 @@ gtk_text_changed_callback( GtkWidget *widget, wxTextCtrl *win ) if (g_isIdle) wxapp_install_idle_handler(); - win->SetModified(); + win->MarkDirty(); wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() ); event.SetEventObject( win );