Support wxNO_BORDER for wxCheckBox under GTK2

This commit is contained in:
Ilya Sinitsyn
2019-11-10 19:19:09 +07:00
committed by Vadim Zeitlin
parent 3ca9491c5f
commit dacf25ac99

View File

@@ -146,6 +146,11 @@ bool wxCheckBox::Create(wxWindow *parent,
g_object_ref(m_widget);
SetLabel( label );
if ( style & wxNO_BORDER )
{
gtk_container_set_border_width(GTK_CONTAINER(m_widgetCheckbox), 0);
}
g_signal_connect (m_widgetCheckbox, "toggled",
G_CALLBACK (gtk_checkbox_toggled_callback), this);