projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check wxDateTime components validity more rigorously.
[wxWidgets.git]
/
src
/
common
/
tbarbase.cpp
diff --git
a/src/common/tbarbase.cpp
b/src/common/tbarbase.cpp
index 40a01e7b2ae93252a5940fe5196955792f45c6af..94d015f1554641d1d16ffce7064328b70b7bb948 100644
(file)
--- a/
src/common/tbarbase.cpp
+++ b/
src/common/tbarbase.cpp
@@
-61,7
+61,10
@@
IMPLEMENT_DYNAMIC_CLASS(wxToolBarToolBase, wxObject)
wxToolBarToolBase::~wxToolBarToolBase()
{
wxToolBarToolBase::~wxToolBarToolBase()
{
+#if wxUSE_MENUS
delete m_dropdownMenu;
delete m_dropdownMenu;
+#endif
+
if ( IsControl() )
GetControl()->Destroy();
}
if ( IsControl() )
GetControl()->Destroy();
}
@@
-121,11
+124,13
@@
bool wxToolBarToolBase::SetLongHelp(const wxString& help)
}
}
+#if wxUSE_MENUS
void wxToolBarToolBase::SetDropdownMenu(wxMenu* menu)
{
delete m_dropdownMenu;
m_dropdownMenu = menu;
}
void wxToolBarToolBase::SetDropdownMenu(wxMenu* menu)
{
delete m_dropdownMenu;
m_dropdownMenu = menu;
}
+#endif
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
@@
-454,8
+459,7
@@
bool wxToolBarBase::Realize()
if ( m_tools.empty() )
return false;
if ( m_tools.empty() )
return false;
- // make sure tool size is larger enough for all all bitmaps to fit in
- // (this is consistent with what other ports do):
+ // make sure tool size is large enough for all bitmaps to fit in
AdjustToolBitmapSize();
return true;
AdjustToolBitmapSize();
return true;
@@
-730,6
+734,7
@@
void wxToolBarBase::UpdateWindowUI(long flags)
}
}
}
}
+#if wxUSE_MENUS
bool wxToolBarBase::SetDropdownMenu(int toolid, wxMenu* menu)
{
wxToolBarToolBase * const tool = FindById(toolid);
bool wxToolBarBase::SetDropdownMenu(int toolid, wxMenu* menu)
{
wxToolBarToolBase * const tool = FindById(toolid);
@@
-742,6
+747,7
@@
bool wxToolBarBase::SetDropdownMenu(int toolid, wxMenu* menu)
return true;
}
return true;
}
+#endif
#if WXWIN_COMPATIBILITY_2_8
#if WXWIN_COMPATIBILITY_2_8