removed wxXmlResource::GetFirstRoot for reasons explained at wx-dev
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -146,17 +146,6 @@ void wxXmlResource::ClearHandlers()
|
||||
}
|
||||
|
||||
|
||||
wxXmlNode *wxXmlResource::GetFirstRoot()
|
||||
{
|
||||
UpdateResources(); //ensure everything is up-to-date
|
||||
|
||||
if (m_data.GetCount() == 0) return NULL;
|
||||
|
||||
if (m_data[0].Doc == NULL) return NULL;
|
||||
|
||||
return m_data[0].Doc->GetRoot();
|
||||
}
|
||||
|
||||
wxMenu *wxXmlResource::LoadMenu(const wxString& name)
|
||||
{
|
||||
return (wxMenu*)CreateResFromNode(FindResource(name, wxT("wxMenu")), NULL, NULL);
|
||||
|
Reference in New Issue
Block a user