Add a call to HIToolbarItemSetLabel().
Closes #11885.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63830
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFAIL_MSG("Reference count of native tool was illegal before removal");
}
wxASSERT( IsValidControlHandle(tool->GetControl()->GetPeer()->GetControlRef() )) ;
wxFAIL_MSG("Reference count of native tool was illegal before removal");
}
wxASSERT( IsValidControlHandle(tool->GetControl()->GetPeer()->GetControlRef() )) ;
+
+ wxString label = tool->GetLabel();
+ if ( !label.empty() )
+ HIToolbarItemSetLabel( hiItemRef, wxCFStringRef(label, GetFont().GetEncoding()) );