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:
@@ -253,7 +253,8 @@ static void gtk_listitem_select_callback( GtkWidget *WXUNUSED(widget), wxListBox
|
|||||||
|
|
||||||
event.m_commandInt = n;
|
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,
|
(GtkSignalFunc)gtk_listbox_key_press_callback,
|
||||||
(gpointer)this );
|
(gpointer)this );
|
||||||
|
|
||||||
gtk_widget_show( list_item );
|
|
||||||
|
|
||||||
ConnectWidget( list_item );
|
ConnectWidget( list_item );
|
||||||
|
|
||||||
|
gtk_widget_show( list_item );
|
||||||
|
|
||||||
if (GTK_WIDGET_REALIZED(m_widget))
|
if (GTK_WIDGET_REALIZED(m_widget))
|
||||||
{
|
{
|
||||||
gtk_widget_realize( list_item );
|
gtk_widget_realize( list_item );
|
||||||
|
@@ -253,7 +253,8 @@ static void gtk_listitem_select_callback( GtkWidget *WXUNUSED(widget), wxListBox
|
|||||||
|
|
||||||
event.m_commandInt = n;
|
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,
|
(GtkSignalFunc)gtk_listbox_key_press_callback,
|
||||||
(gpointer)this );
|
(gpointer)this );
|
||||||
|
|
||||||
gtk_widget_show( list_item );
|
|
||||||
|
|
||||||
ConnectWidget( list_item );
|
ConnectWidget( list_item );
|
||||||
|
|
||||||
|
gtk_widget_show( list_item );
|
||||||
|
|
||||||
if (GTK_WIDGET_REALIZED(m_widget))
|
if (GTK_WIDGET_REALIZED(m_widget))
|
||||||
{
|
{
|
||||||
gtk_widget_realize( list_item );
|
gtk_widget_realize( list_item );
|
||||||
|
Reference in New Issue
Block a user