summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-04-21 07:53:14 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:14 +0000
commitb62612d455418a28dc51e86290c43e2dda4e6fa5 (patch)
treec481a2b6a057be83187e8441f8b4d1ae934eb842
parent18873623598ecd1b4e3cb46a8251754374dc5f34 (diff)
Release mode, and button reloading.
-rw-r--r--Cydia.mm2
-rw-r--r--UICaboodle/RVBook.h1
-rw-r--r--UICaboodle/RVBook.mm8
3 files changed, 10 insertions, 1 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 9962b65..29c4df3 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -403,7 +403,7 @@ extern NSString * const kCAFilterNearest;
#define lprintf(args...) fprintf(stderr, args)
-#define ForRelease 0
+#define ForRelease 1
#define TraceLogging (1 && !ForRelease)
#define HistogramInsertionSort (0 && !ForRelease)
#define ProfileTimes (0 && !ForRelease)
diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h
index d0037cf..ff42c5a 100644
--- a/UICaboodle/RVBook.h
+++ b/UICaboodle/RVBook.h
@@ -63,6 +63,7 @@
- (void) reloadButtonsForPage:(RVPage *)page;
- (NSString *) getTitleForPage:(RVPage *)page;
+- (void) reloadButtons;
- (void) reloadData;
- (CGRect) pageBounds;
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index 29e9513..7812a24 100644
--- a/UICaboodle/RVBook.mm
+++ b/UICaboodle/RVBook.mm
@@ -282,6 +282,14 @@
}
}
+- (void) reloadButtons {
+ size_t count([pages_ count]);
+ if (count != 0) {
+ RVPage *page([pages_ lastObject]);
+ [self reloadButtonsForPage:page];
+ }
+}
+
- (CGRect) pageBounds {
return [transition_ bounds];
}