From 6494f8d1425e0e582686bfd38334ef82d277cb44 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 8 Jul 2010 17:35:45 +0000 Subject: [PATCH 1/1] iPhone SDK 2.2 compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/osx/iphone/chkconf.h | 5 +++++ src/osx/iphone/nonownedwnd.mm | 4 ++++ src/osx/iphone/toolbar.mm | 2 ++ 3 files changed, 11 insertions(+) diff --git a/include/wx/osx/iphone/chkconf.h b/include/wx/osx/iphone/chkconf.h index 7b55544335..d86f2de9fa 100644 --- a/include/wx/osx/iphone/chkconf.h +++ b/include/wx/osx/iphone/chkconf.h @@ -31,6 +31,11 @@ * turning off capabilities that don't work under iphone yet */ +#if wxUSE_MIMETYPE +#undef wxUSE_MIMETYPE +#define wxUSE_MIMETYPE 0 +#endif + #if wxUSE_MDI #undef wxUSE_MDI #define wxUSE_MDI 0 diff --git a/src/osx/iphone/nonownedwnd.mm b/src/osx/iphone/nonownedwnd.mm index 87018de7b8..9c14e09ac3 100644 --- a/src/osx/iphone/nonownedwnd.mm +++ b/src/osx/iphone/nonownedwnd.mm @@ -335,7 +335,11 @@ wxWidgetImpl* wxWidgetImpl::CreateContentView( wxNonOwnedWindow* now ) wxUIContentView* contentview = [[wxUIContentView alloc] initWithFrame:( fullscreen ? frame : appframe ) ]; contentview.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; wxUIContentViewController* controller = [[wxUIContentViewController alloc] initWithNibName:nil bundle:nil]; + +#ifdef __IPHONE_3_0 controller.wantsFullScreenLayout = fullscreen; +#endif + controller.view = contentview; [contentview release]; [contentview setController:controller]; diff --git a/src/osx/iphone/toolbar.mm b/src/osx/iphone/toolbar.mm index e77c140fd3..4892a57e82 100644 --- a/src/osx/iphone/toolbar.mm +++ b/src/osx/iphone/toolbar.mm @@ -227,6 +227,7 @@ bool wxToolBar::Create( switch ( [[UIApplication sharedApplication] statusBarStyle] ) { +#ifdef __IPHONE_3_0 case UIStatusBarStyleBlackOpaque: toolbar.barStyle = UIBarStyleBlack; break; @@ -234,6 +235,7 @@ bool wxToolBar::Create( toolbar.barStyle = UIBarStyleBlack; toolbar.translucent = YES; break; +#endif default: toolbar.barStyle = UIBarStyleDefault; break; -- 2.45.2