From 8c86c115d0e68584b0e7369f047a218c22f9bbad Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Sep 2009 06:04:52 +0000 Subject: [PATCH 01/16] Stupid semicolons. --- Cydia.app/German.lproj/Localizable.strings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cydia.app/German.lproj/Localizable.strings b/Cydia.app/German.lproj/Localizable.strings index 01041df7..78a818ca 100644 --- a/Cydia.app/German.lproj/Localizable.strings +++ b/Cydia.app/German.lproj/Localizable.strings @@ -179,7 +179,7 @@ "SPONSOR" = "Sponsor"; "SPONSORING_PRODUCTS" = "Unterstützende Produkte"; "STATISTICS" = "Statistik"; -"STILL_BROKEN_EX" = "Der Versuch, die kaputten Sektionen zu reparieren hat nichts gebracht." +"STILL_BROKEN_EX" = "Der Versuch, die kaputten Sektionen zu reparieren hat nichts gebracht."; "STORAGE" = "Speicherplatz"; "STORAGE_EX" = "Nachsehen, wieviel Speicherplatz für neue Pakete vorhanden ist."; "SUBMIT" = "Absenden"; -- 2.45.2 From 3d3f46666b0fc612216bb841c3ba31eff641d49b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Sep 2009 08:25:30 +0000 Subject: [PATCH 02/16] Fixed a stupid bug with trivial repo addition. --- Cydia.mm | 17 +++++++++++------ control | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Cydia.mm b/Cydia.mm index c6d6b522..fd160dfa 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -5626,11 +5626,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { NSError *error_; //NSURLConnection *installer_; + NSURLConnection *trivial_; NSURLConnection *trivial_bz2_; NSURLConnection *trivial_gz_; //NSURLConnection *automatic_; - BOOL trivial_; + BOOL cydia_; } - (id) initWithBook:(RVBook *)book database:(Database *)database; @@ -5659,6 +5660,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [error_ release]; //[self _deallocConnection:installer_]; + [self _deallocConnection:trivial_]; [self _deallocConnection:trivial_gz_]; [self _deallocConnection:trivial_bz2_]; //[self _deallocConnection:automatic_]; @@ -5780,7 +5782,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (void) _endConnection:(NSURLConnection *)connection { NSURLConnection **field = NULL; - if (connection == trivial_bz2_) + if (connection == trivial_) + field = &trivial_; + else if (connection == trivial_bz2_) field = &trivial_bz2_; else if (connection == trivial_gz_) field = &trivial_gz_; @@ -5789,12 +5793,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { *field = nil; if ( + trivial_ == nil && trivial_bz2_ == nil && trivial_gz_ == nil ) { bool defer(false); - if (trivial_) { + if (cydia_) { if (NSString *warning = [self yieldToSelector:@selector(getWarning)]) { defer = true; @@ -5857,7 +5862,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (void) connection:(NSURLConnection *)connection didReceiveResponse:(NSHTTPURLResponse *)response { switch ([response statusCode]) { case 200: - trivial_ = YES; + cydia_ = YES; } } @@ -5908,12 +5913,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { href_ = href; href_ = [href_ retain]; - trivial_bz2_ = [[self _requestHRef:[href_ stringByAppendingString:@"Packages"] method:@"HEAD"] retain]; + trivial_ = [[self _requestHRef:[href_ stringByAppendingString:@"Packages"] method:@"HEAD"] retain]; trivial_bz2_ = [[self _requestHRef:[href_ stringByAppendingString:@"Packages.bz2"] method:@"HEAD"] retain]; trivial_gz_ = [[self _requestHRef:[href_ stringByAppendingString:@"Packages.gz"] method:@"HEAD"] retain]; //trivial_bz2_ = [[self _requestHRef:[href stringByAppendingString:@"dists/Release"] method:@"HEAD"] retain]; - trivial_ = false; + cydia_ = false; hud_ = [[delegate_ addProgressHUD] retain]; [hud_ setText:UCLocalize("VERIFYING_URL")]; diff --git a/control b/control index 3d372520..7d13b2f0 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: required Section: Packaging Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 1.0.3027-1 +Version: 1.0.3030-1 Replaces: com.sosiphone.addcydia Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds, essential Pre-Depends: dpkg (>= 1.14.25-8) -- 2.45.2 From 12b7669a2bb7d4b93c01af5a98a436eb4529d4bd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Sep 2009 16:47:43 +0000 Subject: [PATCH 03/16] Fixed a really stupid memory corruption bug. --- Cydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cydia.mm b/Cydia.mm index fd160dfa..579d17f4 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -1622,9 +1622,12 @@ typedef std::map< unsigned long, _H > SourceMap; host_ = [[host_ lowercaseString] retain]; if (host_ != nil) - authority_ = [host_ retain]; + authority_ = host_; else authority_ = [url path]; + + if (authority_ != nil) + authority_ = [authority_ retain]; } - (Source *) initWithMetaIndex:(metaIndex *)index inPool:(apr_pool_t *)pool { -- 2.45.2 From bdc466daf638c629aa60b110ac654c5cbde94130 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 9 Sep 2009 22:03:03 +0000 Subject: [PATCH 04/16] OMG WTH. --- Cydia.mm | 2 +- control | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cydia.mm b/Cydia.mm index 579d17f4..51eea376 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -8182,7 +8182,7 @@ static _finline void _setHomePage(Cydia *self) { [hud_ setText:@"Reorganizing\n\nWill Automatically\nClose When Done"]; [self setStatusBarShowsProgress:YES]; - [self yieldToSelector:@selector(system) withObject:@"http://www.hipsterwave.com/tag/cydia/"]; + [self yieldToSelector:@selector(system:) withObject:@"/usr/libexec/cydia/space.sh"]; [self setStatusBarShowsProgress:NO]; [self removeProgressHUD:hud_]; diff --git a/control b/control index 7d13b2f0..30ba83c8 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: required Section: Packaging Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 1.0.3030-1 +Version: 1.0.3032-1 Replaces: com.sosiphone.addcydia Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds, essential Pre-Depends: dpkg (>= 1.14.25-8) -- 2.45.2 From 22b21e43c03d2fa0cb51c7cad6a2762c07d63715 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 16 Sep 2009 20:46:06 +0000 Subject: [PATCH 05/16] I hate you Apple, and your tiny little iframes, too. --- Cydia.app/package.html | 14 +++++++++ Cydia.app/package.js | 26 ++++++++++++++-- Cydia.mm | 69 +++++++++--------------------------------- control | 2 +- 4 files changed, 53 insertions(+), 58 deletions(-) diff --git a/Cydia.app/package.html b/Cydia.app/package.html index 317f41b2..5bd2f4c6 100644 --- a/Cydia.app/package.html +++ b/Cydia.app/package.html @@ -9,6 +9,20 @@ + + + + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + diff --git a/Cydia.app/icon-72.png b/Cydia.app/icon-72.png new file mode 100644 index 0000000000000000000000000000000000000000..83a19f99892069e712ef0cb42dd5274c38920176 GIT binary patch literal 14538 zcmW++18`(r6P?&LcVcdAZtP@ZY;0_tY;4=+#^%PhZ9Ca`V`u*P{(5!aRK1$1>DTx6 z>C>k>;=7_03L+sQ002Odkrr10f69WFJUlG;J|02#697O|vJw;f{@v2v#opP{-T^2h zCI)nHvNyN-X$Aneuji;*sHvXf3O;S$i^_%jC(GHZ;J^b_M5Fw%6R7FQ5YT1A$$qcl zDEDDVNI(;f=7&SY#`;I&C^I5QBCf(6k`=@T6^2KSzwLPy+AMcI9Z!8Wtq7e|-Q_gS z!1cl-r%JOcbNVBfi;`mO28|33?;SFI3qYiF0HDJ+nvywxP(T2leFX#<$a~?s0TAvB zNbr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nPk;^TcJ=c3NK!eU39#wKjMo^{+oHc?ruJVWEq)oF z2I^hLHRPD8m3U~FTiK<=v!PPZVTh)g`Ea|QN_&_#nZ#Xpzg|@{akejdr4H7tV0$RL z`BZji&QW<}CRli&P=+XdfJcU8W0vfa)zc)l^sx%acMq?;>xgD*oAnyBts*a#`E)in z*V^h^n_piJQo>g7a<@I(7kUtNZ)RW&)rw!3XMW4(qg=o#Le7NA3a*3)207*rL(*ma zR#DDZqlGrEHMerB<@YOCDl%_MFgU_U`8&G6vE=(5r!mrA72*6)8posAOCZ;Xa;*_& zoQeIk3C(w-r0b#>2JEhJl@pKhq(8J?R?18`Iy*3SP)`A+y|c9(zA3*eR>%!8c_6d@ zfu;c_-;lyV0oR`BoWZ9bM9yoy Vblhwect#umkdaUnuMss2{2v`sd$#}p literal 0 HcmV?d00001 diff --git a/Cydia.mm b/Cydia.mm index 120a97b5..77acf567 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -378,7 +378,7 @@ static const CFStringCompareFlags LaxCompareFlags_ = kCFCompareCaseInsensitive | #define TraceLogging (1 && !ForRelease) #define HistogramInsertionSort (0 && !ForRelease) #define ProfileTimes (0 && !ForRelease) -#define ForSaurik (1 && !ForRelease) +#define ForSaurik (0 && !ForRelease) #define LogBrowser (0 && !ForRelease) #define TrackResize (0 && !ForRelease) #define ManualRefresh (1 && !ForRelease) @@ -386,7 +386,7 @@ static const CFStringCompareFlags LaxCompareFlags_ = kCFCompareCaseInsensitive | #define IgnoreInstall (0 && !ForRelease) #define RecycleWebViews 0 #define RecyclePackageViews (1 && ForRelease) -#define AlwaysReload (1 && !ForRelease) +#define AlwaysReload (0 && !ForRelease) #if !TraceLogging #undef _trace diff --git a/control b/control index 9958a4af..09deb27a 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: required Section: Packaging Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 1.0.3140-1 +Version: 1.0.3159-1 Replaces: com.sosiphone.addcydia Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds, essential Pre-Depends: dpkg (>= 1.14.25-8) -- 2.45.2 From 575ffd3c53c5d96c9752926f4aadbd8a2ac1f1bb Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 7 Apr 2010 13:13:52 +0000 Subject: [PATCH 14/16] This is working well. --- Cydia.app/Default-Portrait.png | Bin 0 -> 4800 bytes Cydia.app/Info.plist | 2 +- Cydia.app/confirm.html | 4 +- Cydia.app/menes/style.css | 218 +++++++++++++++++++++------------ Cydia.app/package.html | 4 +- Cydia.app/storage.html | 6 +- Cydia.mm | 67 +++------- control | 4 +- 8 files changed, 166 insertions(+), 139 deletions(-) create mode 100644 Cydia.app/Default-Portrait.png diff --git a/Cydia.app/Default-Portrait.png b/Cydia.app/Default-Portrait.png new file mode 100644 index 0000000000000000000000000000000000000000..c24b27e32fcf6938b1f008d06de0f25126c46b11 GIT binary patch literal 4800 zcmd^DZAg<*6h52FbY)F5l)ik!k1Q%O!-}GAGMj^@Vky#(Sf$Cb#1d5cfJ<0WP*JNz z`GNi@Lt;fAe+<)DRMLltRGJg}W0_?+LHuE5=S;JP@2ndv7X7$;@9sVKoacGYxi7ru zSW1#EKs`eZ00H_$Z7P5dPJKT3`QoE*Vp}0T6#1#Tc(6X3^$s9tpI*CeQ_-s)drWTd zI?a)$y6m`H2WGx4iVa_>oU*OqeoJviUjpBiaB`zAQB?}Xr99(CS+4b7Qf*=J@i!&i zA1#>?4V|4?R;zVyL4n0=He-Z`yX!jMIvghvVD_%h2fgvAYr=hF1>h_Kx0120Q z+62A|pDEF>FU(}X85-oN&{ManKGbv){rj;;pDqaUI!Bu~5+uD#fDHLF*>N}X# zKA5+|%KAv-urJ$OTO_)@5(u@YZbjj&LJLK{!2qZjTz>#vixtSN3^Ho6nF1;{z?0@u zQ@H_|FHqH=zt*wTVAdly#iBh*vS#X<+^TN17pJj>D71A(4NfM2KOMzaisS zySHH)A1x;Z$C${!N!+X9en(!7F##FDaQ{|tzat-6pd>~kdl@E9iU?q05Q?nj<#6xD z{f>MIcsLQFq@8!)%P=uYoB$??>;(&!(;0!>F|zj{Ci!9+zZks@)A(q|W=KH((ZixT zc^Z>INpLD5g%Mdx&KdsvCc1x}G$r~ssWOs=L=`O#;Y45z0Zbgt|8-1^ICz;(qL?J& zAn>jiy*lKd;SkYDB6|;F5-8K*tHT2UIDrzlM2zeOibEp%KOvo-d9yvYd2_5ke${Ir zIXRhvR%6q_hF|rJywbvo&07@MD2d;N^9qf#vyj=me_(Pnz$Smt@t;gbQ~dQN^isRw zM=K%@Ph*FJoG=`aGue5xA_ZD#X`~+!uP{=Fh{9%6TC_-t1)BeYgegsH=dbMT96Ztb P97BUXAxUeEHy-*1^$tz0 literal 0 HcmV?d00001 diff --git a/Cydia.app/Info.plist b/Cydia.app/Info.plist index 7af583c2..05d10f1e 100644 --- a/Cydia.app/Info.plist +++ b/Cydia.app/Info.plist @@ -54,7 +54,7 @@ UIDeviceFamily 1 - + 2 UISupportedInterfaceOrientations diff --git a/Cydia.app/confirm.html b/Cydia.app/confirm.html index 3f01c116..335a3267 100644 --- a/Cydia.app/confirm.html +++ b/Cydia.app/confirm.html @@ -9,7 +9,7 @@ - +

:

@@ -37,5 +37,5 @@
-
+ diff --git a/Cydia.app/menes/style.css b/Cydia.app/menes/style.css index d558e839..a9d32409 100644 --- a/Cydia.app/menes/style.css +++ b/Cydia.app/menes/style.css @@ -52,12 +52,13 @@ * { border: 0; + -moz-border-radius: 0; -webkit-border-radius: 0; box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; -webkit-box-sizing: border-box; - font-family: inherit; + /*font-family: inherit;*/ font-size: 100%; font-style: inherit; font-weight: inherit; @@ -83,11 +84,17 @@ select { border: 1px solid #999999; } -body { +panel { + display: block; width: 320px; - font-family: Helvetica; +} + +body { + font-family: Helvetica, Arial; -webkit-text-size-adjust: none; -webkit-user-select: none; + margin: 0 auto; + width: 320px; } body.white { @@ -133,6 +140,10 @@ em { color: #aaaabb; } +.deleted { + display: none; +} + /* #toolbar {{{ */ dialog > toolbar { background: url(toolbar.png) #6d84a2 repeat-x; @@ -190,11 +201,12 @@ panel > block { border-top: 1px solid #999999; border-left: 1px dotted #999999; border-right: 1px dotted #999999; + -moz-border-radius: 9px; -webkit-border-radius: 9px; //border: 1px solid #999999; display: block; font-size: 16px; - margin: 9px 10px; + margin: 9px; padding: 0 10px; } @@ -206,6 +218,7 @@ panel > block > hr { panel > fieldset { background-color: #ffffff; border: 1px solid #999999; + -moz-border-radius: 9px; -webkit-border-radius: 9px; font-size: 16px; margin: 9px; @@ -213,6 +226,7 @@ panel > fieldset { panel > input[type="submit"] { /*-webkit-border-image: url(whiteButton.png) 0 12 0 12; + -moz-border-radius: 0; -webkit-border-radius: 0; border-width: 0px 12px;*/ border: none; @@ -255,11 +269,9 @@ panel > fieldset > textarea { border-top: 1px solid #999999; } -.deleted { - display: none; -} - -panel > fieldset > a.right:nth-child(2), +/* XXX: should be a.left:nth-last-child(2) */ +panel > fieldset > a.left, +panel > fieldset > a.middle, panel > fieldset > a:first-child, panel > fieldset > div:first-child, panel > fieldset > textarea:first-child { @@ -289,37 +301,39 @@ fieldset > a[type="ad"] { padding: 4px 4px 2px 5px; } -panel > fieldset > a[type="ad"]:first-child > div:first-of-type, -panel > fieldset > a[type="comment"]:first-child > div:first-of-type, -panel > fieldset > a[type="profile"]:first-child > div:first-of-type, -panel > fieldset > a[type="thumb"]:first-child > div:first-of-type { +panel > fieldset > a[type="ad"]:first-child > div:first-child, +panel > fieldset > a[type="comment"]:first-child > div:first-child, +panel > fieldset > a[type="profile"]:first-child > div:first-child, +panel > fieldset > a[type="thumb"]:first-child > div:first-child { + -moz-border-radius-topleft: 9px; -webkit-border-top-left-radius: 9px; } -panel > fieldset > a[type="ad"]:last-child > div:first-of-type, -panel > fieldset > a[type="comment"]:last-child > div:first-of-type, -panel > fieldset > a[type="profile"]:last-child > div:first-of-type, -panel > fieldset > a[type="thumb"]:last-child > div:first-of-type { +panel > fieldset > a[type="ad"]:last-child > div:first-child, +panel > fieldset > a[type="comment"]:last-child > div:first-child, +panel > fieldset > a[type="profile"]:last-child > div:first-child, +panel > fieldset > a[type="thumb"]:last-child > div:first-child { + -moz-border-radius-bottomleft: 9px; -webkit-border-bottom-left-radius: 9px; } -fieldset > a[type="ad"] > div:first-of-type { +fieldset > a[type="ad"] > div:first-child { border: 1px solid #999999; } -list > fieldset > a[type="comment"] > div:first-of-type, -list > fieldset > a[type="profile"] > div:first-of-type, -list > fieldset > a[type="thumb"] > div:first-of-type { +list > fieldset > a[type="comment"] > div:first-child, +list > fieldset > a[type="profile"] > div:first-child, +list > fieldset > a[type="thumb"] > div:first-child { border: 1px solid #e0e0e0; } -panel > fieldset > a[type="comment"] > div:first-of-type { +panel > fieldset > a[type="comment"] > div:first-child { border: 1px solid #999999; border-bottom-style: dashed; } -panel > fieldset > a[type="profile"] > div:first-of-type, -panel > fieldset:not(.header) > a[type="thumb"] > div:first-of-type { +panel > fieldset > a[type="profile"] > div:first-child, +panel > fieldset:not(.header) > a[type="thumb"] > div:first-child { border: 1px solid #999999; } @@ -336,7 +350,7 @@ div[tile="media"] { background-image: url(http://cache.saurik.com/cydia/tile/med div[tile="music"] { background-image: url(http://cache.saurik.com/cydia/tile/video.png); } div[tile="site"] { background-image: url(http://cache.saurik.com/cydia/tile/site.png); } -fieldset > a[type="ad"] > div:first-of-type { +fieldset > a[type="ad"] > div:first-child { background-repeat: no-repeat; background-position: center center; border-right: none; @@ -353,32 +367,32 @@ panel > fieldset > a[type="comment"] { border-bottom-style: dashed; } -fieldset > a[type="comment"] > div:first-of-type { +fieldset > a[type="comment"] > div:first-child { -webkit-background-size: 44px; height: 44px; width: 44px; } -fieldset > a[type="header"] > div:first-of-type { +fieldset > a[type="header"] > div:first-child { height: 64px; width: 64px; } -fieldset > a[type="profile"] > div:first-of-type { +fieldset > a[type="profile"] > div:first-child { -webkit-background-size: 50px; height: 50px; width: 50px; } -fieldset > a[type="thumb"] > div:first-of-type { +fieldset > a[type="thumb"] > div:first-child { height: 64px; width: 64px; } -fieldset > a[type="comment"] > div:first-of-type, -fieldset > a[type="header"] > div:first-of-type, -fieldset > a[type="profile"] > div:first-of-type, -fieldset > a[type="thumb"] > div:first-of-type { +fieldset > a[type="comment"] > div:first-child, +fieldset > a[type="header"] > div:first-child, +fieldset > a[type="profile"] > div:first-child, +fieldset > a[type="thumb"] > div:first-child { background-repeat: no-repeat; background-position: center center; display: inline-block; @@ -397,11 +411,16 @@ fieldset > div > img.icon { width: 30px; } +fieldset > a.sixth > img.icon { + position: relative; + left: 7px; +} + panel > block > p, fieldset > div > p, panel > block > ul, fieldset > div > ul { - margin: 11px 0; + margin: 10px 0; } panel > block > ul, @@ -430,8 +449,9 @@ fieldset > a { } fieldset > textarea, -fieldset > div > input, -fieldset > div > select { +fieldset > div > input:not([type="checkbox"]), +fieldset > div > select, +fieldset > div > div > select { background: none; -webkit-box-shadow: none; -webkit-appearance: none; @@ -440,34 +460,44 @@ fieldset > div > select { /* Chevrons {{{ */ fieldset > a[href]:not([type="ad"]), -fieldset > div > select { +fieldset > div > select, +fieldset > div > div > select { background-repeat: no-repeat; background-image: url(chevron.png); - background-position-y: center; } /* Horizontal */ list > fieldset > a[href] { - background-position-x: 295px; + background-position: 295px center; } panel > fieldset > a[href] { - background-position-x: 275px; + background-position: 275px center; } panel > fieldset > a[href].half { - background-position-x: 125px; + background-position: 125px center; +} + +panel > fieldset > a[href].third { + background-position: 75px center; +} + +panel > fieldset > a[href].sixth { + background: none; } list > fieldset > a:not([href]) > select, -list > fieldset > div > select { - background-position-x: 183px; +list > fieldset > div > select, +list > fieldset > div > div > select { + background-position: 183px center; } panel > fieldset > a:not([href]) > select, -panel > fieldset > div > select { - background-position-x: 163px; +panel > fieldset > div > select, +panel > fieldset > div > div > select { + background-position: 163px center; } /* }}} */ @@ -475,14 +505,16 @@ panel > fieldset > div > select { fieldset > textarea, fieldset > div > input, fieldset > div > select, -fieldset > a > div > label:nth-of-type(2), -fieldset > div > div > label:nth-of-type(2) { +fieldset > div > div > select, +fieldset > a > div > label + label, +fieldset > div > div > label + label { color: #193250; } fieldset > textarea, fieldset > div > input, -fieldset > div > select { +fieldset > div > select, +fieldset > div > div > select { font-size: 16px; } @@ -491,8 +523,19 @@ fieldset > div > input { padding-right: 14px; } +fieldset > div > input[type="checkbox"] { + border: 1px solid #999999; + -moz-border-radius: 7px; + -webkit-border-radius: 7px; + float: right; + margin: -7px -8px; + height: 30px; + width: 30px; +} + fieldset > div > select, -fieldset > div > input { +fieldset > div > div > select, +fieldset > div > input:not([type="checkbox"]) { border: none; float: right; height: 40px; @@ -500,12 +543,14 @@ fieldset > div > input { } panel > fieldset > div > select, -panel > fieldset > div > input { +panel > fieldset > div > div > select, +panel > fieldset > div > input:not([type="checkbox"]) { width: 187px; } list > fieldset > div > select, -list > fieldset > div > input { +list > fieldset > div > div > select, +list > fieldset > div > input:not([type="checkbox"]) { width: 207px; } @@ -523,7 +568,7 @@ fieldset > div > div { width: 273px; } -fieldset > a[type="ad"] > div:nth-of-type(2) { +fieldset > a[type="ad"] > div:nth-child(2) { width: 218px; } @@ -540,64 +585,64 @@ fieldset > a[href] > img.icon + div { width: 221px; } -fieldset > a[type="profile"] > div:nth-of-type(2) > label:nth-of-type(1).unknown { +fieldset > a[type="profile"] > div:nth-child(2) > label:nth-child(1).unknown { color: #aaaabb; } -fieldset > a[type="profile"] > div:nth-of-type(2) > label:only-of-type { +fieldset > a[type="profile"] > div:nth-child(2) > label:only-child { left: 4px; position: relative; top: 3px; } -fieldset > a[type="thumb"] > div:nth-of-type(2) > label:only-of-type { +fieldset > a[type="thumb"] > div:nth-child(2) > label:only-child { position: relative; top: 10px; } -fieldset > a[type="profile"] > div:nth-of-type(2) > label:nth-of-type(2) { +fieldset > a[type="profile"] > div:nth-child(2) > label + label { display: block; font-size: 13px; margin-top: 2px; } -fieldset > a[type="thumb"] > div:nth-of-type(2) > label:nth-of-type(2) { +fieldset > a[type="thumb"] > div:nth-child(2) > label + label { display: block; margin-top: 2px; } -fieldset > a[type="profile"] > div:nth-of-type(2) { +fieldset > a[type="profile"] > div:nth-child(2) { width: 207px; } -fieldset > a[type="thumb"] > div:nth-of-type(2) { +fieldset > a[type="thumb"] > div:nth-child(2) { width: 193px; } -fieldset > a[type="profile"] > div:nth-of-type(2) { +fieldset > a[type="profile"] > div:nth-child(2) { margin: -5px 0; } -fieldset > a[type="profile"] > div:nth-of-type(2), -fieldset > a[type="thumb"] > div:nth-of-type(2) { +fieldset > a[type="profile"] > div:nth-child(2), +fieldset > a[type="thumb"] > div:nth-child(2) { vertical-align: top; } -fieldset > a > label:first-of-type, -fieldset > a > div > label:first-of-type, -fieldset > div > label:first-of-type, -fieldset > div > div > label:first-of-type { +fieldset > a > label:first-child, +fieldset > a > div > label:first-child, +fieldset > div > label:first-child, +fieldset > div > div > label:first-child { font-weight: bold; } /* XXX: this doesn't handle icon offsets */ -list > fieldset > a:not([type]) > div > label:nth-of-type(2), -list > fieldset > div > div > label:nth-of-type(2) { +list > fieldset > a:not([type]) > div > label + label, +list > fieldset > div > div > label + label { margin-left: 94px; } -panel > fieldset > a:not([type]) > div > label:nth-of-type(2), -panel > fieldset > div > div > label:nth-of-type(2) { +panel > fieldset > a:not([type]) > div > label + label, +panel > fieldset > div > div > label + label { float: right; text-align: right; } @@ -612,19 +657,19 @@ panel > img { fieldset > a[type="ad"] { } -fieldset > a[type="ad"] > div:nth-of-type(2) { +fieldset > a[type="ad"] > div:nth-child(2) { position: relative; vertical-align: top; } -fieldset > a[type="ad"] > div > label:nth-of-type(1) { +fieldset > a[type="ad"] > div > label:first-child { color: #2d2d50; font-size: 13px; font-weight: bold; line-height: 15px; } -fieldset > a[type="ad"] > div > label:nth-of-type(2) { +fieldset > a[type="ad"] > div > label + label { position: absolute; top: 17px; left: 156px; @@ -632,6 +677,7 @@ fieldset > a[type="ad"] > div > label:nth-of-type(2) { font-weight: normal; } +panel > fieldset > a.middle, panel > fieldset > a.right { border-left: 1px solid #999999; } @@ -641,9 +687,19 @@ panel > fieldset > a.half { width: 150px; } +panel > fieldset > a.third { + display: inline-block; + width: 100px; +} + +panel > fieldset > a.sixth { + display: inline-block; + width: 50px; +} + fieldset.half > a { background: none; - background-position-x: 120px; + background-position: 120px center; } fieldset.half > a > img.icon + div { @@ -674,10 +730,12 @@ list > fieldset.dashed > textarea { } fieldset > a[type="thumb"]:first-child > back { + -moz-border-radius-topright: 9px; -webkit-border-top-right-radius: 9px; } fieldset > a[type="thumb"]:last-child > back { + -moz-border-radius-bottomright: 9px; -webkit-border-bottom-right-radius: 9px; } @@ -695,6 +753,7 @@ fieldset > a[type="thumb"] > back { .mm { border: 1px solid #999999; + -moz-border-radius: 9px; -webkit-border-radius: 9px; } @@ -729,6 +788,14 @@ fieldset > a.small.half > img.icon + div { width: 79px; } +fieldset > a.small.third > img.icon + div { + width: 50px; +} + +fieldset > a.small.sixth > img.icon + div { + width: 0px; +} + panel.centered > label { margin-left: 0px; margin-right: 0px; @@ -739,6 +806,7 @@ panel > iframe { margin: -9px 0; } +panel > iframe:first-child, panel > iframe + iframe { margin-top: 0; } @@ -799,7 +867,7 @@ panel > iframe + iframe { panel > fieldset.header { background-color: transparent; border: none; - margin: -5px 0 -11px 0; + margin: -5px 9px -11px 9px; } panel > fieldset.header > a > div > label { diff --git a/Cydia.app/package.html b/Cydia.app/package.html index 7a737019..aacd6b7c 100644 --- a/Cydia.app/package.html +++ b/Cydia.app/package.html @@ -198,7 +198,7 @@ } - + - + diff --git a/Cydia.app/storage.html b/Cydia.app/storage.html index 033ff4fc..55ac5abf 100644 --- a/Cydia.app/storage.html +++ b/Cydia.app/storage.html @@ -195,8 +195,7 @@ } - - + + diff --git a/Cydia.mm b/Cydia.mm index 77acf567..9cebd988 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -1001,6 +1001,7 @@ class CGColor { /* Random Global Variables {{{ */ static const int PulseInterval_ = 50000; +static const int ButtonBarWidth_ = 60; static const int ButtonBarHeight_ = 48; static const float KeyboardTime_ = 0.3f; @@ -4357,55 +4358,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { case 4: [close_ setTitle:UCLocalize("REBOOT_DEVICE")]; break; } -#define ListCache_ "/User/Library/Caches/com.apple.mobile.installation.plist" -#define IconCache_ "/User/Library/Caches/com.apple.springboard-imagecache-icons.plist" - - unlink(IconCache_); - - if (NSMutableDictionary *cache = [[NSMutableDictionary alloc] initWithContentsOfFile:@ListCache_]) { - [cache autorelease]; - - NSFileManager *manager([NSFileManager defaultManager]); - NSError *error(nil); - - id system([cache objectForKey:@"System"]); - if (system == nil) - goto error; - - struct stat info; - if (stat(ListCache_, &info) == -1) - goto error; - - [system removeAllObjects]; - - if (NSArray *apps = [manager contentsOfDirectoryAtPath:@"/Applications" error:&error]) { - for (NSString *app in apps) - if ([app hasSuffix:@".app"]) { - NSString *path = [@"/Applications" stringByAppendingPathComponent:app]; - NSString *plist = [path stringByAppendingPathComponent:@"Info.plist"]; - if (NSMutableDictionary *info = [[NSMutableDictionary alloc] initWithContentsOfFile:plist]) { - [info autorelease]; - if ([info objectForKey:@"CFBundleIdentifier"] != nil) { - [info setObject:path forKey:@"Path"]; - [info setObject:@"System" forKey:@"ApplicationType"]; - [system addInfoDictionary:info]; - } - } - } - } else goto error; - - [cache writeToFile:@ListCache_ atomically:YES]; - - if (chown(ListCache_, info.st_uid, info.st_gid) == -1) - goto error; - if (chmod(ListCache_, info.st_mode) == -1) - goto error; - - if (false) error: - lprintf("%s\n", error == nil ? strerror(errno) : [[error localizedDescription] UTF8String]); - } - - notify_post("com.apple.mobile.application_installed"); + system("su -c /usr/bin/uicache mobile"); [delegate_ setStatusBarShowsProgress:NO]; } @@ -4871,7 +4824,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (id) init { if ((self = [super init]) != nil) { icon_ = [[UIImage applicationImageNamed:@"folder.png"] retain]; - switch_ = [[_UISwitchSlider alloc] initWithFrame:CGRectMake(218, 9, 60, 25)]; [switch_ addTarget:self action:@selector(onSwitch:) forEvents:UIControlEventTouchUpInside]; } return self; @@ -4927,7 +4879,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { if (!selected) UISetColor(Black_); - [name_ drawAtPoint:CGPointMake(48, 9) forWidth:(editing_ ? 164 : 250) withFont:Font22Bold_ ellipsis:2]; + + float width(rect.size.width + 23); + if (editing_) + width -= 86; + + [name_ drawAtPoint:CGPointMake(48, 9) forWidth:(width - 170) withFont:Font22Bold_ ellipsis:2]; CGSize size = [count_ sizeWithFont:Font14_]; @@ -5237,7 +5194,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { frame.size.height = 0; [webview_ setFrame:frame]; - [scroller_ scrollPointVisibleAtTopLeft:CGPointZero]; + if ([scroller_ respondsToSelector:@selector(scrollPointVisibleAtTopLeft:)]) + [scroller_ scrollPointVisibleAtTopLeft:CGPointZero]; + else + [scroller_ scrollRectToVisible:CGRectZero animated:NO]; WebThreadLock(); [[[webview_ webView] windowScriptObject] setValue:package_ forKey:@"package"]; @@ -8261,7 +8221,8 @@ static _finline void _setHomePage(Cydia *self) { for (int i = 0; i != 5; ++i) [[toolbar_ viewWithTag:(i + 1)] setFrame:CGRectMake( - i * 64 + 2, 1, 60, ButtonBarHeight_ + i * (screenrect.size.width / 5) + (screenrect.size.width / 5 - ButtonBarWidth_) / 2, 1, + ButtonBarWidth_, ButtonBarHeight_ )]; [toolbar_ showSelectionForButton:1]; diff --git a/control b/control index 09deb27a..cd974de0 100644 --- a/control +++ b/control @@ -3,9 +3,9 @@ Priority: required Section: Packaging Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 1.0.3159-1 +Version: 1.0.3163-1 Replaces: com.sosiphone.addcydia -Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds, essential +Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds, uikittools Pre-Depends: dpkg (>= 1.14.25-8) Conflicts: com.sosiphone.addcydia Description: graphical iPhone front-end for APT -- 2.45.2 From d4f84362aecb14bc7343022545139727d3ad7191 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 9 Apr 2010 07:16:07 +0000 Subject: [PATCH 15/16] Scrollers and keyboards and things. --- Cydia.mm | 3 +- UICaboodle/BrowserView.mm | 170 +++++++++++++++++++++++++++++++------- UICaboodle/RVBook.h | 2 + UICaboodle/RVPage.h | 2 + UICaboodle/RVPage.mm | 4 + UICaboodle/UCPlatform.h | 6 +- control | 2 +- 7 files changed, 154 insertions(+), 35 deletions(-) diff --git a/Cydia.mm b/Cydia.mm index 9cebd988..26c23c5a 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -8547,7 +8547,8 @@ int main(int argc, char *argv[]) { _pooled if ($GSFontSetUseLegacyFontMetrics != NULL) $GSFontSetUseLegacyFontMetrics(YES); - UIKeyboardDisableAutomaticAppearance(); + // XXX: I have a feeling this was important + //UIKeyboardDisableAutomaticAppearance(); /* }}} */ Colon_ = UCLocalize("COLON_DELIMITED"); diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 61437118..f479dd51 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -10,10 +10,12 @@ extern NSString * const kCAFilterNearest; #include "substrate.h" -#define ForSaurik 0 +#define ForSaurik 1 static CFArrayRef (*$GSSystemCopyCapability)(CFStringRef); static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); +static Class $UIFormAssistant; +static Class $UIWebBrowserView; @interface NSString (UIKit) - (NSString *) stringByAddingPercentEscapes; @@ -144,7 +146,7 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); @end -#define ShowInternals 0 +#define ShowInternals 1 #define LogBrowser 0 #define lprintf(args...) fprintf(stderr, args) @@ -166,6 +168,11 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); $GSSystemCopyCapability = reinterpret_cast(dlsym(RTLD_DEFAULT, "GSSystemCopyCapability")); $GSSystemGetCapability = reinterpret_cast(dlsym(RTLD_DEFAULT, "GSSystemGetCapability")); + $UIFormAssistant = objc_getClass("UIFormAssistant"); + + $UIWebBrowserView = objc_getClass("UIWebBrowserView"); + if ($UIWebBrowserView == nil) + $UIWebBrowserView = objc_getClass("UIWebDocumentView"); } - (void) dealloc { @@ -196,7 +203,10 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); [webview_ setDelegate:nil]; [webview_ setGestureDelegate:nil]; - [webview_ setFormEditingDelegate:nil]; + + if ([webview_ respondsToSelector:@selector(setFormEditingDelegate:)]) + [webview_ setFormEditingDelegate:nil]; + [webview_ setInteractionDelegate:nil]; [indirect_ setDelegate:nil]; @@ -294,10 +304,11 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); /* XXX: WebThreadLock? */ - (void) _fixScroller:(CGRect)bounds { float extra; - if (!editing_) + + if (!editing_ || $UIFormAssistant == nil) extra = 0; else { - UIFormAssistant *assistant([UIFormAssistant sharedFormAssistant]); + UIFormAssistant *assistant([$UIFormAssistant sharedFormAssistant]); CGRect peripheral([assistant peripheralFrame]); #if LogBrowser NSLog(@"per:%f", peripheral.size.height); @@ -307,16 +318,18 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); CGRect subrect([scroller_ frame]); subrect.size.height -= extra; - [scroller_ setScrollerIndicatorSubrect:subrect]; - NSSize visible(NSMakeSize(subrect.size.width, subrect.size.height)); - [webview_ setValue:[NSValue valueWithSize:visible] forGestureAttribute:UIGestureAttributeVisibleSize]; + if ([scroller_ respondsToSelector:@selector(setScrollerIndicatorSubrect:)]) + [scroller_ setScrollerIndicatorSubrect:subrect]; + + [webview_ setValue:[NSValue valueWithSize:NSMakeSize(subrect.size.width, subrect.size.height)] forGestureAttribute:UIGestureAttributeVisibleSize]; CGSize size(size_); size.height += extra; [scroller_ setContentSize:size]; - [scroller_ releaseRubberBandIfNecessary]; + if ([scroller_ respondsToSelector:@selector(releaseRubberBandIfNecessary)]) + [scroller_ releaseRubberBandIfNecessary]; } - (void) fixScroller { @@ -938,7 +951,14 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); [book_ reloadTitleForPage:self]; - [scroller_ scrollPointVisibleAtTopLeft:CGPointZero]; + CGRect webrect = [scroller_ bounds]; + webrect.size.height = 1; + [webview_ setFrame:webrect]; + + if ([scroller_ respondsToSelector:@selector(scrollPointVisibleAtTopLeft:)]) + [scroller_ scrollPointVisibleAtTopLeft:CGPointZero]; + else + [scroller_ scrollRectToVisible:CGRectZero animated:NO]; if ([scroller_ respondsToSelector:@selector(setZoomScale:duration:)]) [scroller_ setZoomScale:1 duration:0]; @@ -946,10 +966,6 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); [scroller_ _setZoomScale:1 duration:0]; /*else if ([scroller_ respondsToSelector:@selector(setZoomScale:animated:)]) [scroller_ setZoomScale:1 animated:NO];*/ - - CGRect webrect = [scroller_ bounds]; - webrect.size.height = 0; - [webview_ setFrame:webrect]; } [self reloadButtons]; @@ -1071,6 +1087,8 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); - (void) webView:(WebView *)sender didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame { [self _didFailWithError:error forFrame:frame]; + if ([webview_ respondsToSelector:@selector(webView:didFailLoadWithError:forFrame:)]) + [webview_ webView:sender didFailLoadWithError:error forFrame:frame]; } - (void) webView:(WebView *)sender didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame { @@ -1083,11 +1101,93 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); #endif } +- (void) webView:(WebView *)sender didReceiveMessage:(NSDictionary *)dictionary { +#if LogBrowser || ForSaurik + lprintf("Console:%s\n", [[dictionary description] UTF8String]); +#endif + if ([webview_ respondsToSelector:@selector(webView:didReceiveMessage:)]) + [webview_ webView:sender didReceiveMessage:dictionary]; +} + +- (void) webView:(id)sender willCloseFrame:(id)frame { + if ([webview_ respondsToSelector:@selector(webView:willCloseFrame:)]) + [webview_ webView:sender willCloseFrame:frame]; +} + +- (void) webView:(id)sender didFinishDocumentLoadForFrame:(id)frame { + if ([webview_ respondsToSelector:@selector(webView:didFinishDocumentLoadForFrame:)]) + [webview_ webView:sender didFinishDocumentLoadForFrame:frame]; +} + +- (void) webView:(id)sender didFirstLayoutInFrame:(id)frame { + if ([webview_ respondsToSelector:@selector(webView:didFirstLayoutInFrame:)]) + [webview_ webView:sender didFirstLayoutInFrame:frame]; +} + +- (void) webViewFormEditedStatusHasChanged:(id)changed { + if ([webview_ respondsToSelector:@selector(webViewFormEditedStatusHasChanged:)]) + [webview_ webViewFormEditedStatusHasChanged:changed]; +} + +- (void) webView:(id)sender formStateDidFocusNode:(id)formState { + if ([webview_ respondsToSelector:@selector(webView:formStateDidFocusNode:)]) + [webview_ webView:sender formStateDidFocusNode:formState]; +} + +- (void) webView:(id)sender formStateDidBlurNode:(id)formState { + if ([webview_ respondsToSelector:@selector(webView:formStateDidBlurNode:)]) + [webview_ webView:sender formStateDidBlurNode:formState]; +} + /* XXX: fix this stupid include file - (void) webView:(WebView *)sender frame:(WebFrame *)frame exceededDatabaseQuotaForSecurityOrigin:(WebSecurityOrigin *)origin database:(NSString *)database { [origin setQuota:0x500000]; }*/ +- (void) webViewDidLayout:(id)sender { + [webview_ webViewDidLayout:sender]; +} + +- (void) webView:(id)sender didFirstVisuallyNonEmptyLayoutInFrame:(id)frame { + [webview_ webView:sender didFirstVisuallyNonEmptyLayoutInFrame:frame]; +} + +- (void) webView:(id)sender saveStateToHistoryItem:(id)item forFrame:(id)frame { + [webview_ webView:sender saveStateToHistoryItem:item forFrame:frame]; +} + +- (void) webView:(id)sender restoreStateFromHistoryItem:(id)item forFrame:(id)frame force:(BOOL)force { + [webview_ webView:sender restoreStateFromHistoryItem:item forFrame:frame force:force]; +} + +- (void) webView:(id)sender attachRootLayer:(id)layer { + [webview_ webView:sender attachRootLayer:layer]; +} + +- (id) webView:(id)sender plugInViewWithArguments:(id)arguments fromPlugInPackage:(id)package { + return [webview_ webView:sender plugInViewWithArguments:arguments fromPlugInPackage:package]; +} + +- (void) webView:(id)sender willShowFullScreenForPlugInView:(id)view { + [webview_ webView:sender willShowFullScreenForPlugInView:view]; +} + +- (void) webView:(id)sender didHideFullScreenForPlugInView:(id)view { + [webview_ webView:sender didHideFullScreenForPlugInView:view]; +} + +- (void) webView:(id)sender willAddPlugInView:(id)view { + [webview_ webView:sender willAddPlugInView:view]; +} + +- (void) webView:(id)sender didObserveDeferredContentChange:(int)change forFrame:(id)frame { + [webview_ webView:sender didObserveDeferredContentChange:change forFrame:frame]; +} + +- (void) webViewDidPreventDefaultForEvent:(id)sender { + [webview_ webViewDidPreventDefaultForEvent:sender]; +} + - (void) _setTileDrawingEnabled:(BOOL)enabled { //[webview_ setTileDrawingEnabled:enabled]; } @@ -1126,7 +1226,7 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); struct CGRect bounds = [self bounds]; - scroller_ = [[UIScroller alloc] initWithFrame:bounds]; + scroller_ = [[UIScrollView alloc] initWithFrame:bounds]; [self addSubview:scroller_]; [scroller_ setFixedBackgroundPattern:YES]; @@ -1134,18 +1234,26 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); [scroller_ setScrollingEnabled:YES]; [scroller_ setClipsSubviews:YES]; - [scroller_ setAllowsRubberBanding:YES]; + + if (false) + [scroller_ setAllowsRubberBanding:YES]; [scroller_ setDelegate:self]; [scroller_ setBounces:YES]; - [scroller_ setScrollHysteresis:8]; - [scroller_ setThumbDetectionEnabled:NO]; - [scroller_ setDirectionalScrolling:YES]; - [scroller_ setScrollDecelerationFactor:0.99]; /* 0.989324 */ - [scroller_ setEventMode:YES]; + + if (false) { + [scroller_ setScrollHysteresis:8]; + [scroller_ setThumbDetectionEnabled:NO]; + [scroller_ setDirectionalScrolling:YES]; + [scroller_ setScrollDecelerationFactor:0.99]; /* 0.989324 */ + [scroller_ setEventMode:YES]; + } + [scroller_ setShowBackgroundShadow:NO]; /* YES */ - [scroller_ setAllowsRubberBanding:YES]; /* Vertical */ - [scroller_ setAdjustForContentSizeChange:YES]; /* NO */ + //[scroller_ setAllowsRubberBanding:YES]; /* Vertical */ + + if (false) + [scroller_ setAdjustForContentSizeChange:YES]; /* NO */ CGRect webrect = [scroller_ bounds]; webrect.size.height = 0; @@ -1165,7 +1273,7 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); #else if (true) { #endif - webview_ = [[UIWebDocumentView alloc] initWithFrame:webrect]; + webview_ = [[$UIWebBrowserView alloc] initWithFrame:webrect]; webview = [webview_ webView]; // XXX: this is terribly (too?) expensive @@ -1176,9 +1284,8 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); if ([webview_ respondsToSelector:@selector(enableReachability)]) [webview_ enableReachability]; - - [webview_ setAllowsMessaging:YES]; - + if ([webview_ respondsToSelector:@selector(setAllowsMessaging:)]) + [webview_ setAllowsMessaging:YES]; if ([webview_ respondsToSelector:@selector(useSelectionAssistantWithMode:)]) [webview_ useSelectionAssistantWithMode:0]; @@ -1208,7 +1315,7 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); [webview_ _setDocumentType:0x4]; - if ([webview_ respondsToSelector:@selector(UIWebDocumentView:)]) + if ([webview_ respondsToSelector:@selector(setZoomsFocusedFormControl:)]) [webview_ setZoomsFocusedFormControl:YES]; [webview_ setContentsPosition:7]; [webview_ setEnabledGestures:0xa]; @@ -1233,7 +1340,10 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); [webview_ setDelegate:self]; [webview_ setGestureDelegate:self]; - [webview_ setFormEditingDelegate:self]; + + if ([webview_ respondsToSelector:@selector(setFormEditingDelegate:)]) + [webview_ setFormEditingDelegate:self]; + [webview_ setInteractionDelegate:self]; [scroller_ addSubview:webview_]; @@ -1253,7 +1363,7 @@ static CFArrayRef (*$GSSystemGetCapability)(CFStringRef); WebThreadUnlock(); CGSize indsize = [UIProgressIndicator defaultSizeForStyle:UIProgressIndicatorStyleMediumWhite]; - indicator_ = [[UIProgressIndicator alloc] initWithFrame:CGRectMake(281, 12, indsize.width, indsize.height)]; + indicator_ = [[UIProgressIndicator alloc] initWithFrame:CGRectMake(bounds.size.width - 39, 12, indsize.width, indsize.height)]; [indicator_ setStyle:UIProgressIndicatorStyleMediumWhite]; [self setAutoresizingMask:UIViewAutoresizingFlexibleHeight]; diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h index e3b109af..376a1531 100644 --- a/UICaboodle/RVBook.h +++ b/UICaboodle/RVBook.h @@ -49,8 +49,10 @@ - (void) setPage:(RVPage *)page; - (void) swapPage:(RVPage *)page; + - (void) pushPage:(RVPage *)page animated:(BOOL)animated; - (void) pushPage:(RVPage *)page; + - (void) popPages:(unsigned)pages; - (void) pushBook:(RVBook *)book; diff --git a/UICaboodle/RVPage.h b/UICaboodle/RVPage.h index 18e3dd4c..284ebcaf 100644 --- a/UICaboodle/RVPage.h +++ b/UICaboodle/RVPage.h @@ -10,6 +10,8 @@ _transient id delegate_; } +- (bool) splitView; + - (NSString *) title; - (NSString *) backButtonTitle; - (id) rightButtonTitle; diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index 9d77a861..7154bab5 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -7,6 +7,10 @@ @implementation RVPage +- (bool) splitView { + return false; +} + - (NSString *) title { [self doesNotRecognizeSelector:_cmd]; return nil; diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h index 2506a5dc..4f2169e4 100644 --- a/UICaboodle/UCPlatform.h +++ b/UICaboodle/UCPlatform.h @@ -43,9 +43,9 @@ while (false) #define _label _label_(__LINE__) #define _packed \ - __attribute__((packed)) - -#define _finline inline __attribute__((always_inline)) + __attribute__((__packed__)) +#define _finline \ + inline __attribute__((__always_inline__)) #define _assume(e) \ _assert(e) diff --git a/control b/control index cd974de0..0266b87c 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: required Section: Packaging Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 1.0.3163-1 +Version: 1.0.3166-1 Replaces: com.sosiphone.addcydia Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds, uikittools Pre-Depends: dpkg (>= 1.14.25-8) -- 2.45.2 From 195c9edd6493389147153164f7194366eab9e426 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 29 Apr 2010 10:09:23 +0000 Subject: [PATCH 16/16] I hate repositories. --- Cydia.app/Sections.plist | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Cydia.app/Sections.plist b/Cydia.app/Sections.plist index 9b590bcf..fb590b6e 100644 --- a/Cydia.app/Sections.plist +++ b/Cydia.app/Sections.plist @@ -51,6 +51,30 @@ Messaging + Themes_(Locksceen) + + Rename + Themes_(LockScreen) + + + Themes_(Lockscree) + + Rename + Themes_(LockScreen) + + + Themes_(Losckscreen) + + Rename + Themes_(LockScreen) + + + Themes_(Video) + + Rename + Themes_(Videos) + + Utilites Rename -- 2.45.2