]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
Added (untested) support for sub-locales.
[wxWidgets.git] / src / common / tbarbase.cpp
index aac6b6ae94e46e1ca96cfbe751d5201a5524e0d1..d50620d33fee2d59235e1ee81607acd09d4f0e2e 100644 (file)
@@ -29,7 +29,7 @@
 #include <windows.h>
 #endif
 
-#if USE_TOOLBAR
+#if wxUSE_TOOLBAR
 
 #include "wx/tbarbase.h"
 
@@ -195,7 +195,7 @@ void wxToolBarBase::AddSeparator ()
 {
   wxToolBarTool *tool = new wxToolBarTool;
   tool->m_toolStyle = wxTOOL_STYLE_SEPARATOR;
-  m_tools.Append(tool);
+  m_tools.Append(-1, tool);
 }
 
 void wxToolBarBase::ClearTools(void)
@@ -615,7 +615,7 @@ void wxToolBarBase::AdjustScrollbars(void)
 // Default OnSize resets scrollbars, if any
 void wxToolBarBase::OnSize(wxSizeEvent& event)
 {
-#if USE_CONSTRAINTS
+#if wxUSE_CONSTRAINTS
   if (GetAutoLayout())
     Layout();
 #endif