// we should only be called if we have a max len limit at all
GtkEntry *entry = GTK_ENTRY (editable);
- wxCHECK_RET( entry->text_max_length, _T("shouldn't be called") );
+ wxCHECK_RET( entry->text_max_length, wxT("shouldn't be called") );
// check that we don't overflow the max length limit
//
{
const wxGtkString value(gtk_editable_get_chars(GetEditable(), 0, -1));
- return wxGTK_CONV_BACK_FONT(value, GetEditableWindow()->GetFont());
+ return wxGTK_CONV_BACK_FONT(value,
+ const_cast<wxTextEntry *>(this)->GetEditableWindow()->GetFont());
}
void wxTextEntry::Remove(long from, long to)
// generating a dummy wxEVT_COMMAND_TEXT_UPDATED event
//IgnoreNextTextUpdate();
- wxWindow * const win = const_cast<wxWindow *>(GetEditableWindow());
+ wxWindow * const win = GetEditableWindow();
wxCommandEvent event(wxEVT_COMMAND_TEXT_MAXLEN, win->GetId());
event.SetEventObject(win);
event.SetString(GetValue());