- if (!PreCreation( parent, pos, size ) ||
- !wxControl::CreateBase(parent, id, pos, size, style, validator, name))
- {
- wxFAIL_MSG( wxT("wxColourButton creation failed") );
- return false;
- }
+ m_colour = col;
+ m_widget = gtk_color_button_new_with_color( m_colour.GetColor() );
+ g_object_ref(m_widget);
+ gtk_widget_show(m_widget);