X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2ccb25092ea0b6e94968823cbfc7d9b97326de7..c4825ef73a5f190b8f39c59df098c3f39fa4464b:/src/gtk/textctrl.cpp diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 325dcbd5c6..e30c23e4da 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -687,6 +687,7 @@ bool wxTextCtrl::Create( wxWindow *parent, g_object_set (m_text, "has-frame", FALSE, NULL); } + g_object_ref(m_widget); m_parent->DoAddChild( this ); @@ -1006,9 +1007,6 @@ void wxTextCtrl::DoSetValue( const wxString &value, int flags ) { EnableTextChangedEvents(true); } - - // This was added after discussion on the list - SetInsertionPoint(0); } void wxTextCtrl::WriteText( const wxString &text )