event.m_commandInt = n;
- listbox->GetEventHandler()->ProcessEvent( event );
+ listbox->GetEventHandler()->AddPendingEvent( event );
+// listbox->GetEventHandler()->ProcessEvent( event );
}
//-----------------------------------------------------------------------------
(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 );
event.m_commandInt = n;
- listbox->GetEventHandler()->ProcessEvent( event );
+ listbox->GetEventHandler()->AddPendingEvent( event );
+// listbox->GetEventHandler()->ProcessEvent( event );
}
//-----------------------------------------------------------------------------
(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 );