]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/combobox.cpp
Made tearoff menus work for gtk :-)
[wxWidgets.git] / src / gtk1 / combobox.cpp
index bec8f16668b3415f3526a426c94c44f5bbb6a88a..efbe51763d8fd2b18fde0518b7dda40c974aebb9 100644 (file)
@@ -12,6 +12,9 @@
 #endif
 
 #include "wx/combobox.h"
+
+#if wxUSE_COMBOBOX
+
 #include "wx/settings.h"
 
 #include <wx/intl.h>
@@ -101,7 +104,9 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
 
     PreCreation( parent, id, pos, size, style, name );
 
+#if wxUSE_VALIDATORS
     SetValidator( validator );
+#endif
 
     m_widget = gtk_combo_new();
 
@@ -625,3 +630,4 @@ bool wxComboBox::IsOwnGtkWindow( GdkWindow *window )
              (window == GTK_COMBO(m_widget)->button->window ) );
 }
 
+#endif