- m_needParent = TRUE;
-
- wxSize newSize = size;
-
- PreCreation( parent, id, pos, newSize, style, name );
+ m_clientData = (wxClientData*) NULL;
+ m_needParent = TRUE;
+ m_acceptsFocus = TRUE;
+
+ wxSize newSize = size;
+
+ PreCreation( parent, id, pos, newSize, style, name );
+
+#if wxUSE_VALIDATORS
+ SetValidator( validator );
+#endif // wxUSE_VALIDATORS
+
+ m_widget = gtk_button_new_with_label( "" );
+
+#if (GTK_MINOR_VERSION > 0)
+ if (style & wxNO_BORDER)
+ gtk_button_set_relief( GTK_BUTTON(m_widget), GTK_RELIEF_NONE );
+#endif