projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reSWIGged
[wxWidgets.git]
/
src
/
motif
/
menuitem.cpp
diff --git
a/src/motif/menuitem.cpp
b/src/motif/menuitem.cpp
index c680eaeaadd7d25aab7401913e603b3e8226681e..08bf34a5ffd5f809f936a6f59847205977883560 100644
(file)
--- a/
src/motif/menuitem.cpp
+++ b/
src/motif/menuitem.cpp
@@
-1,5
+1,5
@@
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
-// Name: menuitem.cpp
+// Name:
src/motif/
menuitem.cpp
// Purpose: wxMenuItem implementation
// Author: Julian Smart
// Modified by:
// Purpose: wxMenuItem implementation
// Author: Julian Smart
// Modified by:
@@
-20,12
+20,13
@@
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/defs.h"
-
-#include "wx/menu.h"
#include "wx/menuitem.h"
#include "wx/menuitem.h"
-#include "wx/utils.h"
-#include "wx/frame.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/utils.h"
+ #include "wx/frame.h"
+ #include "wx/menu.h"
+#endif
#ifdef __VMS__
#pragma message disable nosimpint
#ifdef __VMS__
#pragma message disable nosimpint
@@
-171,7
+172,7
@@
void wxMenuItem::CreateItem (WXWidget menu, wxMenuBar * menuBar,
(wxStripMenuCodes(m_text),
xmLabelGadgetClass, (Widget) menu, NULL);
}
(wxStripMenuCodes(m_text),
xmLabelGadgetClass, (Widget) menu, NULL);
}
- else if (
(!m_text.IsNull() && m_text != "") && (!m_subMenu)
)
+ else if (
!m_text.empty() && !m_subMenu
)
{
wxString strName = wxStripMenuCodes(m_text);
if (IsCheckable())
{
wxString strName = wxStripMenuCodes(m_text);
if (IsCheckable())
@@
-258,7
+259,7
@@
void wxMenuItem::DestroyItem(bool full)
; // Nothing
}
; // Nothing
}
- else if (
(!m_text.IsNull() && (m_text != "")
) && !m_subMenu)
+ else if (
!m_text.empty(
) && !m_subMenu)
{
if (m_buttonWidget)
{
{
if (m_buttonWidget)
{
@@
-412,4
+413,3
@@
wxMenuItemDisarmCallback (Widget WXUNUSED(w), XtPointer clientData,
}
}
}
}
}
}
-