Avoid GTK warning "invalid cast from 'GtkTextView' to 'GtkEntry'" when using SetHint()

closes #16321
This commit is contained in:
Paul Cornett
2015-05-20 23:12:17 -07:00
parent 5f8ac45789
commit f583ba0ffb
2 changed files with 5 additions and 2 deletions

View File

@@ -851,7 +851,10 @@ GtkEditable *wxTextCtrl::GetEditable() const
GtkEntry *wxTextCtrl::GetEntry() const
{
return GTK_ENTRY(m_text);
if (GTK_IS_ENTRY(m_text))
return (GtkEntry*)m_text;
return NULL;
}
int wxTextCtrl::GTKIMFilterKeypress(GdkEventKey* event) const