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:
@@ -310,5 +310,14 @@ wxSize wxSpinCtrl::DoGetBestSize() const
|
||||
return wxSize(95, ret.y);
|
||||
}
|
||||
|
||||
// static
|
||||
wxVisualAttributes
|
||||
wxSpinCtrl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
{
|
||||
// TODO: overload to accept functions like gtk_spin_button_new?
|
||||
// Until then use a similar type
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_entry_new, true);
|
||||
}
|
||||
|
||||
#endif
|
||||
// wxUSE_SPINCTRL
|
||||
|
Reference in New Issue
Block a user