#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/checklst.h"
+
+#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
+#endif
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
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 );
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),
#endif
#endif
+#if wxUSE_TOOLTIPS
if (m_toolTip) m_toolTip->Apply( this );
+#endif
}
void wxListBox::Append( const wxString &item )