Simplify wxComboBox::GetEditable()

Use m_entry that we already store instead of retrieving it from GTK.

No real changes.
This commit is contained in:
Vadim Zeitlin
2019-07-08 16:10:29 +02:00
parent 3d9656395a
commit c75067f0b4

View File

@@ -219,7 +219,7 @@ void wxComboBox::GTKCreateComboBoxWidget()
GtkEditable *wxComboBox::GetEditable() const GtkEditable *wxComboBox::GetEditable() const
{ {
return GTK_EDITABLE(gtk_bin_get_child(GTK_BIN(m_widget))); return GTK_EDITABLE(m_entry);
} }
void wxComboBox::OnChar( wxKeyEvent &event ) void wxComboBox::OnChar( wxKeyEvent &event )