+wxChoice::~wxChoice()
+{
+ Clear();
+}
+
+void wxChoice::AppendCommon( const wxString &item )
+{
+ wxCHECK_RET( m_widget != NULL, "invalid choice" );
+
+ GtkWidget *menu = gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) );
+ GtkWidget *menu_item = gtk_menu_item_new_with_label( item );
+
+ gtk_menu_append( GTK_MENU(menu), menu_item );
+
+ gtk_widget_realize( menu_item );
+ gtk_widget_realize( GTK_BIN(menu_item)->child );
+
+ if (m_widgetStyle) ApplyWidgetStyle();
+
+ gtk_signal_connect( GTK_OBJECT( menu_item ), "activate",
+ GTK_SIGNAL_FUNC(gtk_choice_clicked_callback), (gpointer*)this );
+
+ gtk_widget_show( menu_item );
+}
+