]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/iphone/toolbar.mm
Added missing wxBitmapComboBox::Insert() implementation
[wxWidgets.git] / src / osx / iphone / toolbar.mm
index e77c140fd3b96eca96c6a90ff5647812d75e000f..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:)];
@@ -227,6 +232,7 @@ bool wxToolBar::Create(
     
     switch ( [[UIApplication sharedApplication] statusBarStyle] ) 
     {
+#ifdef __IPHONE_3_0
         case UIStatusBarStyleBlackOpaque:
             toolbar.barStyle = UIBarStyleBlack;
             break;
@@ -234,6 +240,7 @@ bool wxToolBar::Create(
             toolbar.barStyle = UIBarStyleBlack;
             toolbar.translucent = YES;
             break;
+#endif
         default:
             toolbar.barStyle = UIBarStyleDefault;
             break;