]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/listbox.cpp
Now uses the version number when doing a cleandll
[wxWidgets.git] / src / gtk1 / listbox.cpp
index 0b62dcb261a6ba7079a93a8dfb900e43c33a7afa..d99c53a4b5cab006589c7f58b69f957267d4acff 100644 (file)
@@ -244,11 +244,12 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     m_needParent = TRUE;
     m_acceptsFocus = TRUE;
 
-    PreCreation( parent, id, pos, size, style, name );
-
-#if wxUSE_VALIDATORS
-    SetValidator( validator );
-#endif
+    if (!PreCreation( parent, pos, size ) ||
+        !CreateBase( parent, id, pos, size, style, validator, name ))
+    {
+        wxFAIL_MSG( _T("wxListBox creation failed") );
+       return FALSE;
+    }
 
     m_widget = gtk_scrolled_window_new( (GtkAdjustment*) NULL, (GtkAdjustment*) NULL );
     if (style & wxLB_ALWAYS_SB)