projects
/
raktpdf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63da75e
)
Fixed an off-by-one error that enabled the "next" button on the last page.
author
Simone Rota
<sip@varlock.com>
Fri, 11 May 2007 17:21:31 +0000
(19:21 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 11 May 2007 17:21:31 +0000
(19:21 +0200)
src/rakt-window.c
patch
|
blob
|
history
diff --git
a/src/rakt-window.c
b/src/rakt-window.c
index 9f45644dd918818f1350b79b83f5836dcbedafe8..13b35d8c7a39dc6900b5b9f1b2ae782235a18d06 100644
(file)
--- a/
src/rakt-window.c
+++ b/
src/rakt-window.c
@@
-141,7
+141,7
@@
render_page (RaktWindow *window)
n_pages = poppler_document_get_n_pages (priv->document);
gtk_action_set_sensitive (priv->action_prev, priv->page_no > 0);
- gtk_action_set_sensitive (priv->action_next, priv->page_no < n_pages);
+ gtk_action_set_sensitive (priv->action_next, priv->page_no < n_pages
- 1
);
page = poppler_document_get_page (priv->document, priv->page_no);