Avoid GLib warning "couldn't find weak ref" with wxBitmapComboBox

Should have been part of c391cfd617
This commit is contained in:
Paul Cornett
2018-06-06 09:09:12 -07:00
parent 102be6a3cc
commit b839388c82

View File

@@ -127,6 +127,7 @@ void wxBitmapComboBox::GTKCreateComboBoxWidget()
m_widget = gtk_combo_box_entry_new_with_model( GTK_TREE_MODEL(store), m_stringCellIndex );
#endif
m_entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(m_widget)));
g_object_add_weak_pointer(G_OBJECT(m_entry), (void**)&m_entry);
gtk_editable_set_editable(GTK_EDITABLE(m_entry), true);
}
g_object_ref(m_widget);