- GtkWidget *menu_item = gtk_menu_item_new_with_label( wxGTK_CONV( item ) );
-
- size_t index;
- if ( m_strings )
- {
- // sorted control, need to insert at the correct index
- index = m_strings->Add(item);
-
- gtk_menu_insert( GTK_MENU(menu), menu_item, index );
-
- if ( index )
- {
- m_clientList.Insert( m_clientList.Item(index - 1),
- (wxObject*) NULL );
- }
- else
- {
- m_clientList.Insert( (wxObject*) NULL );
- }
- }
- else
- {
- // normal control, just append
- gtk_menu_append( GTK_MENU(menu), menu_item );
-
- m_clientList.Append( (wxObject*) NULL );