]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/listbox.cpp
Small change to SetFont() logic.
[wxWidgets.git] / src / gtk / listbox.cpp
index bdf69d7e36429b785ae663d6f670022f4b8ce4fa..1452563f5032fce32ef51300a33e3ca5c66d8a44 100644 (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 );