- ConnectWidget( combo->button );
-
- // MSW's combo box shows the value and the selection is -1
- gtk_entry_set_text( GTK_ENTRY(combo->entry), wxGTK_CONV(value) );
- gtk_list_unselect_all( GTK_LIST(combo->list) );
-
- if (style & wxCB_READONLY)
- gtk_entry_set_editable( GTK_ENTRY( combo->entry ), FALSE );
-
- gtk_signal_connect( GTK_OBJECT(combo->entry), "changed",
- GTK_SIGNAL_FUNC(gtk_text_changed_callback), (gpointer)this );
-
- gtk_signal_connect( GTK_OBJECT(combo->list), "select-child",
- GTK_SIGNAL_FUNC(gtk_combo_select_child_callback), (gpointer)this );
-
- SetBestSize(size); // need this too because this is a wxControlWithItems
-
- // This is required for tool bar support
- wxSize setsize = GetSize();
- gtk_widget_set_usize( m_widget, setsize.x, setsize.y );
-
- return TRUE;
-}
-
-wxComboBox::~wxComboBox()
-{
- wxList::compatibility_iterator node = m_clientObjectList.GetFirst();
- while (node)