Added Go To Page submenu so the user can directly go to the page that they want. Also fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5290 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -914,6 +914,15 @@ ShowImageView::PrevPage()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ShowImageView::GoToPage(int32 page)
|
||||
{
|
||||
if (page > 0 && page <= fDocumentCount && page != fDocumentIndex) {
|
||||
fDocumentIndex = page;
|
||||
SetImage(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ShowImageView::FreeEntries(BList* entries)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user