Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2005-05-09 09:04:43 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-05-09 09:04:43 (GMT)
commitf2f4f3a6ba165253204a86048e69656c01ebcf27 (patch)
tree322bf90365c54cf7480ed3e6caec2e02ef621dac
parent1adce5486b10e763bed869b110ea31d11ef83e0e (diff)
Compare page labels even without has_labels set, fixes setting page with
2005-05-07 Juerg Billeter <j@bitron.ch> * backend/ev-page-cache.c: (ev_page_cache_set_page_label): Compare page labels even without has_labels set, fixes setting page with entry
-rw-r--r--ChangeLog7
-rw-r--r--backend/ev-page-cache.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cd8aca2..f1f1aa5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-05-07 Juerg Billeter <j@bitron.ch>
+
+ * backend/ev-page-cache.c: (ev_page_cache_set_page_label):
+
+ Compare page labels even without has_labels set, fixes setting page
+ with entry
+
2005-05-09 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-view.c: (ev_view_create_invisible_cursor),
diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c
index 8fb8bcd..c66a1a4 100644
--- a/backend/ev-page-cache.c
+++ b/backend/ev-page-cache.c
@@ -236,7 +236,7 @@ ev_page_cache_set_page_label (EvPageCache *page_cache,
g_return_val_if_fail (page_label != NULL, FALSE);
/* First, look for a literal label match */
- for (i = 0; i < page_cache->n_pages && page_cache->has_labels; i ++) {
+ for (i = 0; i < page_cache->n_pages; i ++) {
if (page_cache->page_labels[i] != NULL &&
! strcmp (page_label, page_cache->page_labels[i])) {
ev_page_cache_set_current_page (page_cache, i);