wxListBox now sends events using AddPendingEvent(),

I wonder if that really is good.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-11-06 16:47:38 +00:00
parent 97206645f1
commit 4349acd401
2 changed files with 8 additions and 6 deletions

View File

@@ -253,7 +253,8 @@ static void gtk_listitem_select_callback( GtkWidget *WXUNUSED(widget), wxListBox
event.m_commandInt = n;
listbox->GetEventHandler()->ProcessEvent( event );
listbox->GetEventHandler()->AddPendingEvent( event );
// listbox->GetEventHandler()->ProcessEvent( event );
}
//-----------------------------------------------------------------------------
@@ -483,10 +484,10 @@ void wxListBox::GtkAddItem( const wxString &item, int pos )
(GtkSignalFunc)gtk_listbox_key_press_callback,
(gpointer)this );
gtk_widget_show( list_item );
ConnectWidget( list_item );
gtk_widget_show( list_item );
if (GTK_WIDGET_REALIZED(m_widget))
{
gtk_widget_realize( list_item );