X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-page-cache.c;h=a43876a40fbe2b319021bdb909de566640e53d9b;hb=0be3be0d4166be324d628802772e99cacd336f11;hp=8b8bedc971355c6479450818d729c8af0a2a6352;hpb=b8aebf2e1ba5b4f9ff1e1256b28acb3e23947c51;p=evince.git diff --git a/shell/ev-page-cache.c b/shell/ev-page-cache.c index 8b8bedc9..a43876a4 100644 --- a/shell/ev-page-cache.c +++ b/shell/ev-page-cache.c @@ -1,6 +1,5 @@ #include #include "ev-page-cache.h" -#include "ev-job-queue.h" #include "ev-document-thumbnails.h" #include "ev-page.h" #include @@ -483,6 +482,15 @@ ev_page_cache_set_page_label (EvPageCache *page_cache, } } + /* Second, look for a match with case insensitively */ + for (i = 0; i < page_cache->n_pages; i++) { + if (page_cache->page_labels[i] != NULL && + ! strcasecmp (page_label, page_cache->page_labels[i])) { + ev_page_cache_set_current_page (page_cache, i); + return TRUE; + } + } + /* Next, parse the label, and see if the number fits */ value = strtol (page_label, &endptr, 10); if (endptr[0] == '\0') {