Avoid GLib warning "couldn't find weak ref" with wxBitmapComboBox
Should have been part of c391cfd617
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user