]> git.saurik.com Git - wxWidgets.git/commitdiff
fix InsertSeparator() (patch 420987)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 3 May 2001 14:41:24 +0000 (14:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 3 May 2001 14:41:24 +0000 (14:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/tbargtk.cpp
src/gtk1/tbargtk.cpp

index 8753cade8d270b4e40e4d13f0bd6a62144e9a79a..b78ce9d916df3e24127b852c73763c2b784f4536 100644 (file)
@@ -354,7 +354,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
             break;
 
         case wxTOOL_STYLE_SEPARATOR:
-            gtk_toolbar_append_space( m_toolbar );
+            gtk_toolbar_insert_space( m_toolbar, pos );
 
             // skip the rest
             return TRUE;
index 8753cade8d270b4e40e4d13f0bd6a62144e9a79a..b78ce9d916df3e24127b852c73763c2b784f4536 100644 (file)
@@ -354,7 +354,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
             break;
 
         case wxTOOL_STYLE_SEPARATOR:
-            gtk_toolbar_append_space( m_toolbar );
+            gtk_toolbar_insert_space( m_toolbar, pos );
 
             // skip the rest
             return TRUE;