]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/choice.cpp
Removed bug that made wxWindow call OnPaint
[wxWidgets.git] / src / gtk / choice.cpp
index 9b9be9c0b03ee2ccd5e90d90c51cd8f552fc5432..bd63c5e3f805ee8ae64d7b3e6527f1dd3c4e4b0e 100644 (file)
@@ -14,6 +14,8 @@
 
 #include "wx/choice.h"
 
+#if wxUSE_CHOICE
+
 #include "gdk/gdk.h"
 #include "gtk/gtk.h"
 
@@ -71,7 +73,9 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
 
     PreCreation( parent, id, pos, size, style, name );
 
+#if wxUSE_VALIDATORS
     SetValidator( validator );
+#endif
 
     m_widget = gtk_option_menu_new();
 
@@ -388,3 +392,4 @@ void wxChoice::ApplyWidgetStyle()
     }
 }
 
+#endif