Get(Class)DefaultAttributes() for wxGTK controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -233,4 +233,16 @@ wxSize wxRadioButton::DoGetBestSize() const
|
||||
return wxControl::DoGetBestSize();
|
||||
}
|
||||
|
||||
// static
|
||||
wxVisualAttributes
|
||||
wxRadioButton::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
{
|
||||
wxVisualAttributes attr;
|
||||
GtkWidget* widget = gtk_radio_button_new_with_label(NULL, "");
|
||||
attr = GetDefaultAttributesFromGTKWidget(widget);
|
||||
gtk_widget_destroy(widget);
|
||||
return attr;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user