projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor cleanup
[wxWidgets.git]
/
src
/
xrc
/
xh_menu.cpp
diff --git
a/src/xrc/xh_menu.cpp
b/src/xrc/xh_menu.cpp
index f45c8ec5f1d25e40bf41a4342e7386060f878ec4..5b13b5be3c9d3d3979877febd0058a77e6940c0b 100644
(file)
--- a/
src/xrc/xh_menu.cpp
+++ b/
src/xrc/xh_menu.cpp
@@
-8,10
+8,6
@@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "xh_menu.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@
-48,12
+44,18
@@
wxObject *wxMenuXmlHandler::DoCreateResource()
wxMenuBar *p_bar = wxDynamicCast(m_parent, wxMenuBar);
if (p_bar)
wxMenuBar *p_bar = wxDynamicCast(m_parent, wxMenuBar);
if (p_bar)
+ {
p_bar->Append(menu, title);
p_bar->Append(menu, title);
+ }
else
{
wxMenu *p_menu = wxDynamicCast(m_parent, wxMenu);
if (p_menu)
else
{
wxMenu *p_menu = wxDynamicCast(m_parent, wxMenu);
if (p_menu)
+ {
p_menu->Append(GetID(), title, menu, help);
p_menu->Append(GetID(), title, menu, help);
+ if (HasParam(wxT("enabled")))
+ p_menu->Enable(GetID(), GetBool(wxT("enabled")));
+ }
}
return menu;
}
return menu;