]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
Watford C++ related changes. Unfortunately, the linker now gives a GPF.
[wxWidgets.git] / src / gtk / control.cpp
index a0b88f5944d1e0b7ba7c1a4139d5d38c0c8dc40a..b369c4d8c11ac1527db2a57fe5de03b41f440fde 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "wx/control.h"
 
-#include "gtk/gtk.h"
+#include <gtk/gtk.h>
 
 //-----------------------------------------------------------------------------
 // wxControl
@@ -36,6 +36,20 @@ wxControl::wxControl( wxWindow *parent,
     (void)Create(parent, id, pos, size, style, name);
 }
 
+#if wxUSE_VALIDATORS
+wxControl::wxControl( wxWindow *parent,
+                      wxWindowID id,
+                      const wxPoint &pos,
+                      const wxSize &size,
+                      long style,
+                      const wxValidator& validator,
+                      const wxString &name)
+{
+    (void)Create(parent, id, pos, size, style, name);
+    SetValidator(validator);
+}
+#endif
+
 void wxControl::SetLabel( const wxString &label )
 {
     m_label.Empty();