Commit aa2abd0b authored by Sebastian Ramacher's avatar Sebastian Ramacher

more debug output

parent 40dd2b46
......@@ -845,6 +845,7 @@ zathura_page_widget_purge_unused(ZathuraPage* widget, gint64 threshold)
const gint64 now = g_get_real_time();
if (now - priv->last_view >= threshold * G_USEC_PER_SEC) {
girara_debug("purge page %d from cache (unseen for %f seconds)", zathura_page_get_index(priv->page), ((double)now - priv->last_view) / G_USEC_PER_SEC);
zathura_page_widget_update_surface(widget, NULL);
}
}
......@@ -33,7 +33,7 @@ render_job(void* data, void* user_data)
return;
}
girara_debug("rendring page %d ...", zathura_page_get_index(page));
girara_debug("rendering page %d ...", zathura_page_get_index(page));
if (render(zathura, page) != true) {
girara_error("Rendering failed (page %d)\n", zathura_page_get_index(page));
}
......
......@@ -926,6 +926,7 @@ gboolean purge_pages(gpointer data)
return TRUE;
}
girara_debug("purging pages ...");
unsigned int number_of_pages = zathura_document_get_number_of_pages(zathura->document);
for (unsigned int page_id = 0; page_id < number_of_pages; page_id++) {
zathura_page_t* page = zathura_document_get_page(zathura->document, page_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment