Avoid GTK warning "invalid cast from 'GtkTextView' to 'GtkEntry'" when using SetHint()
closes #16321
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user