diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-09-19 14:34:15 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-09-19 14:34:15 (GMT) |
commit | b9aef17e3af39e3b9364a3e2a8d7fa56d735fc4c (patch) | |
tree | 4441760956b0557be853cc36bf89072ff0a05b85 /pdf/ev-poppler.cc | |
parent | 8469ab1bef22b59caa4c69293d8c42e2dd7ad6c6 (diff) |
Implement FIT and FITH links
2005-09-19 Marco Pesenti Gritti <mpg@redhat.com>
* backend/ev-link.c: (ev_link_type_get_type),
(ev_link_new_page_xyz), (ev_link_new_page_fit),
(ev_link_new_page_fith):
* backend/ev-link.h:
* pdf/ev-poppler.cc:
* shell/ev-view.c: (goto_fith_link), (ev_view_goto_link):
Implement FIT and FITH links
Diffstat (limited to 'pdf/ev-poppler.cc')
-rw-r--r-- | pdf/ev-poppler.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 03a27a6..5633840 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -720,10 +720,13 @@ ev_link_from_dest (PopplerAction *action) action->goto_dest.dest->zoom); break; case POPPLER_DEST_FIT: - unimplemented_dest = "POPPLER_DEST_FIT"; + link = ev_link_new_page_fit (action->any.title, + action->goto_dest.dest->page_num - 1); break; case POPPLER_DEST_FITH: - unimplemented_dest = "POPPLER_DEST_FITH"; + link = ev_link_new_page_fith (action->any.title, + action->goto_dest.dest->page_num - 1, + action->goto_dest.dest->top); break; case POPPLER_DEST_FITV: unimplemented_dest = "POPPLER_DEST_FITV"; |