]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/listbox.cpp
compilation fixes for gcc 2.7.2.1 under FreeBSD
[wxWidgets.git] / src / gtk1 / listbox.cpp
index 436ae7f1d6fbbb5591384d9d7935e11a4f517df7..5028599776cd4bc74e3ab73377b37a40ce23e471 100644 (file)
@@ -316,6 +316,8 @@ void wxListBox::AppendCommon( const wxString &item )
         list_item = gtk_list_item_new_with_label( item );
     }
 
+    gtk_container_add( GTK_CONTAINER(m_list), list_item );
+
     gtk_signal_connect( GTK_OBJECT(list_item), "select",
       GTK_SIGNAL_FUNC(gtk_listitem_select_callback), (gpointer)this );
 
@@ -323,8 +325,6 @@ void wxListBox::AppendCommon( const wxString &item )
         gtk_signal_connect( GTK_OBJECT(list_item), "deselect",
           GTK_SIGNAL_FUNC(gtk_listitem_select_callback), (gpointer)this );
 
-    gtk_container_add( GTK_CONTAINER(m_list), list_item );
-
     if (m_widgetStyle) ApplyWidgetStyle();
 
     gtk_signal_connect( GTK_OBJECT(list_item),