Two NULL str errors on HTML files
While fixing #158 (closed), I found that loading an HTML causes two critical warnings, both related to the same string being NULL
. Both happen in view_loaded
in yelp-window.c
, because page_id
is NULL
. It should be the basename of the HTML file. It's getting set to NULL
in view_load_status_changed
in yelp-view.c
. Before that's called, it does have the right ID, but then it tries to adjust for a "real ID", which is what Yelp uses internally to match random IDs in e.g. DocBook to the actual containing chunk ID. OK. Those should be set by each document type using yelp_document_set_page_id
. And you can see that YelpSimpleDocument
(used for HTML and text files), should be doing this in file_info_cb
. But file_info_cb
is never called, and that's as far as I got.