page_cache->size_cache = NULL;
}
+ if (page_cache->thumbs_size_cache) {
+ g_free (page_cache->thumbs_size_cache);
+ page_cache->thumbs_size_cache = NULL;
+ }
+
if (page_cache->height_to_page) {
g_free (page_cache->height_to_page);
page_cache->height_to_page = NULL;
}
}
+ /* 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') {