summaryrefslogtreecommitdiff
path: root/data/mobileterminal/iphoneos-2.2.diff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-11-23 15:07:55 +0000
committerJay Freeman <saurik@saurik.com>2008-11-23 15:07:55 +0000
commit2752995ab16f484766da4ba82371944d29b3bb37 (patch)
treeb211a112eeaeffbb615d38661a88b85ac63c2af8 /data/mobileterminal/iphoneos-2.2.diff
parent7d2613934765fb2d694b66f2392b4d29aa1ab6db (diff)
Merged MobileTerminal to latest iPhone-API and fixed it for iPhoneOS 2.2.
git-svn-id: http://svn.telesphoreo.org/trunk@514 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/mobileterminal/iphoneos-2.2.diff')
-rw-r--r--data/mobileterminal/iphoneos-2.2.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/data/mobileterminal/iphoneos-2.2.diff b/data/mobileterminal/iphoneos-2.2.diff
new file mode 100644
index 000000000..6e546a522
--- /dev/null
+++ b/data/mobileterminal/iphoneos-2.2.diff
@@ -0,0 +1,19 @@
+diff -ru mobileterminal-316s/Sources/MobileTerminal.m mobileterminal-316s+iPhone/Sources/MobileTerminal.m
+--- mobileterminal-316s/Sources/MobileTerminal.m 2008-08-26 11:46:29.000000000 +0000
++++ mobileterminal-316s+iPhone/Sources/MobileTerminal.m 2008-11-22 09:39:43.000000000 +0000
+@@ -503,8 +503,13 @@
+
+ activeTerminal = active;
+
+- if (numTerminals > 1) [self addStatusBarImageNamed:[NSString stringWithFormat:@"MobileTerminal%d", activeTerminal]
+- removeOnAbnormalExit:YES];
++ if (numTerminals > 1) {
++ NSString *name = [NSString stringWithFormat:@"MobileTerminal%d", activeTerminal];
++ if ([self respondsToSelector:@selector(addStatusBarImageNamed:removeOnExit:)])
++ [self addStatusBarImageNamed:name removeOnExit:YES];
++ else
++ [self addStatusBarImageNamed:name removeOnAbnormalExit:YES];
++ }
+
+ [mainView insertSubview:[self textScroller] below:keyboardView];
+