]> git.saurik.com Git - wxWidgets.git/commitdiff
support for separator (fixed width spacE)
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 25 Jan 2011 18:46:01 +0000 (18:46 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 25 Jan 2011 18:46:01 +0000 (18:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/iphone/toolbar.mm

index 4892a57e826cb131240917f2f1739e3a5db08e0d..27f99d76a0890d045d357aa11fa30ab813e760d3 100644 (file)
@@ -121,7 +121,12 @@ wxToolBarToolBase(
     UIBarButtonItemStyle style = UIBarButtonItemStylePlain;
     wxUIToolbar* toolbar = (wxUIToolbar*) tbar->GetHandle();
     
-    if ( bmpNormal.Ok() )
+    if ( id == wxID_SEPARATOR )
+    {
+        [bui initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
+        bui.width = 25.0f;
+    }
+    else if ( bmpNormal.Ok() )
     {
         [bui initWithImage:bmpNormal.GetUIImage() style:UIBarButtonItemStylePlain target:toolbar
                       action:@selector(clickedAction:)];