summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorDustin L. Howett <dustin@howett.net>2010-10-04 07:05:20 -0400
committerDustin L. Howett <dustin@howett.net>2010-10-04 07:05:20 -0400
commit9daa7f25f2115cf9d9b428ab1aadf539d1d07c20 (patch)
tree7916addaf2db07de772345ee5434f7e98ae24b63 /Cydia.mm
parentbc11cf5bb67e9f5c4096dc93d813272a49de1115 (diff)
Fix the warnings when building with AlwaysReload=0, and fix the action button for AlwaysReload=1 (actionButtonClicked -> customButtonClicked, to match the superclass, so there's an implementation to fall through to if AlwaysReload==1)
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm13
1 files changed, 8 insertions, 5 deletions
diff --git a/Cydia.mm b/Cydia.mm
index c28f93d..3afab9d 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -1216,6 +1216,7 @@ bool isSectionVisible(NSString *section) {
- (void) removeProgressHUD:(UIProgressHUD *)hud;
- (UCViewController *) pageForPackage:(NSString *)name;
- (PackageController *) packageController;
+- (void) showActionSheet:(UIActionSheet *)sheet fromItem:(UIBarButtonItem *)item;
@end
/* }}} */
@@ -5121,7 +5122,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
@end
/* }}} */
/* Package Controller {{{ */
-@interface PackageController : CYBrowserController {
+@interface PackageController : CYBrowserController <
+ UIActionSheetDelegate
+> {
_transient Database *database_;
Package *package_;
NSString *name_;
@@ -5193,7 +5196,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
#if !AlwaysReload
-- (void) _actionButtonClicked {
+- (void) _customButtonClicked {
int count([buttons_ count]);
if (count == 0)
return;
@@ -5223,10 +5226,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
}
-- (void) actionButtonClicked {
+- (void) customButtonClicked {
// Wait until it's done loading.
if (![self isLoading])
- [self _actionButtonClicked];
+ [self _customButtonClicked];
}
- (void) reloadButtonClicked {
@@ -5309,7 +5312,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
initWithTitle:count == 0 ? nil : count != 1 ? UCLocalize("MODIFY") : [buttons_ objectAtIndex:0]
style:UIBarButtonItemStylePlain
target:self
- action:@selector(actionButtonClicked)
+ action:@selector(customButtonClicked)
];
if (![self isLoading]) [[self navigationItem] setRightBarButtonItem:actionItem];
else [super applyRightButton];