[sushi] evince: make the prev/next buttons insensitive when necessary
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] evince: make the prev/next buttons insensitive when necessary
- Date: Tue, 10 May 2011 17:41:36 +0000 (UTC)
commit 029eeff9cf97281f719bb603873df81bc4bf9969
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue May 10 13:40:28 2011 -0400
evince: make the prev/next buttons insensitive when necessary
I.e. when there's no previous or next pages to jump to.
src/js/viewers/evince.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/js/viewers/evince.js b/src/js/viewers/evince.js
index 896b191..8f4ec8c 100644
--- a/src/js/viewers/evince.js
+++ b/src/js/viewers/evince.js
@@ -57,6 +57,9 @@ EvinceRenderer.prototype = {
curPage = this._model.get_page();
totPages = this._document.get_n_pages();
+
+ this._toolbarBack.set_sensitive(curPage > 0);
+ this._toolbarForward.set_sensitive(curPage < totPages - 1);
this._pageLabel.set_text(_("%d of %d").format(curPage + 1, totPages));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]