X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05060eeb83b10065edb0f94357102fb6b55cbb29..27a9bd487b5ee30238e35ff4962bf70237cfc2c0:/src/gtk/textctrl.cpp diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index a97f3bb552..51169aaa60 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -137,7 +137,9 @@ bool wxTextCtrl::Create( wxWindow *parent, wxWindowID id, const wxString &value, PreCreation( parent, id, pos, size, style, name ); +#if wxUSE_VALIDATORS SetValidator( validator ); +#endif // wxUSE_VALIDATORS m_vScrollbarVisible = FALSE; @@ -693,9 +695,9 @@ void wxTextCtrl::SetSelection( long from, long to ) gtk_editable_select_region( GTK_EDITABLE(m_text), (gint)from, (gint)to ); } -void wxTextCtrl::ShowPosition( long pos ) +void wxTextCtrl::ShowPosition( long WXUNUSED(pos) ) { - SetInsertionPoint( pos ); +// SetInsertionPoint( pos ); } long wxTextCtrl::GetInsertionPoint() const