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:
@@ -703,4 +703,22 @@ void wxToolBar::OnInternalIdle()
|
||||
UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// static
|
||||
wxVisualAttributes
|
||||
wxToolBar::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||
{
|
||||
#ifdef __WXGTK20__
|
||||
return GetDefaultAttributesFromGTKWidget(gtk_toolbar_new);
|
||||
#else
|
||||
wxVisualAttributes attr;
|
||||
GtkWidget* widget = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH);
|
||||
attr = GetDefaultAttributesFromGTKWidget(widget);
|
||||
gtk_widget_destroy(widget);
|
||||
return attr;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // wxUSE_TOOLBAR_NATIVE
|
||||
|
Reference in New Issue
Block a user