diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-29 11:05:36 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-29 11:05:36 +0000 |
commit | 07d03729ff537eca8429cea27c1f2d15f04ec54f (patch) | |
tree | 2f72e7d67f3da45710c2dd302f16654b80aa1016 /apps/plugins/text_viewer/tv_bookmark.c | |
parent | 7195f3a30cc73e1540a590c519c9a2ecec137952 (diff) | |
download | rockbox-07d03729ff537eca8429cea27c1f2d15f04ec54f.tar.gz rockbox-07d03729ff537eca8429cea27c1f2d15f04ec54f.zip |
text_viewer: callback functions are changed to the function that returns int value.
And the text viewer quits when the problem occurs by callback functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27172 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_bookmark.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_bookmark.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/plugins/text_viewer/tv_bookmark.c b/apps/plugins/text_viewer/tv_bookmark.c index d569ed8d11..7e38d766ec 100644 --- a/apps/plugins/text_viewer/tv_bookmark.c +++ b/apps/plugins/text_viewer/tv_bookmark.c | |||
@@ -98,15 +98,16 @@ static int tv_find_bookmark(const struct tv_screen_pos *pos) | |||
98 | return -1; | 98 | return -1; |
99 | } | 99 | } |
100 | 100 | ||
101 | static void tv_change_preferences(const struct tv_preferences *oldp) | 101 | static int tv_change_preferences(const struct tv_preferences *oldp) |
102 | { | 102 | { |
103 | int i; | 103 | int i; |
104 | 104 | ||
105 | if (oldp == NULL) | 105 | if (oldp) |
106 | return; | 106 | { |
107 | 107 | for (i = 0; i < bookmark_count; i++) | |
108 | for (i = 0; i < bookmark_count; i++) | 108 | tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos); |
109 | tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos); | 109 | } |
110 | return TV_CALLBACK_OK; | ||
110 | } | 111 | } |
111 | 112 | ||
112 | void tv_init_bookmark(void) | 113 | void tv_init_bookmark(void) |