From c75067f0b4f1a928a3faa08c34ee9744128dfa6b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 8 Jul 2019 16:10:29 +0200 Subject: [PATCH] Simplify wxComboBox::GetEditable() Use m_entry that we already store instead of retrieving it from GTK. No real changes. --- src/gtk/combobox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 578088c0fd..d0d6ad23c8 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -219,7 +219,7 @@ void wxComboBox::GTKCreateComboBoxWidget() 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 )