X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de7cb655ae8436f02607fd71c85b7fd6483bce15..90fae9d2cfd82625c8c8279660237514470bc31a:/src/osx/iphone/toolbar.mm diff --git a/src/osx/iphone/toolbar.mm b/src/osx/iphone/toolbar.mm index e77c140fd3..27f99d76a0 100644 --- a/src/osx/iphone/toolbar.mm +++ b/src/osx/iphone/toolbar.mm @@ -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;