Am Mittwoch, den 22.11.2006, 01:10 -0500 schrieb Michel Salim:
> On 11/21/06, Lars Lindner <lars.lindner@...> wrote:
> > >
> > > It makes Liferea use GNOME's document_font_name GConf key instead of
> > > the current font_name, since currently one cannot resize the text in
> > > the HTML viewer without resizing the entire application.
> > Thanks for the patch. It really makes sense to use the document font.
> Related to that, currently Liferea only checks that GConf key at
> start-up. I'm not very familiar with GConf, but how easy would it be
> to modify it so that any change to this font setting when Liferea is
> running is instantly applied?
Yes, this can be done easily. In src/conf.c:100 you can find function
calls like this one:
conf_proxy_reset_settings_cb, NULL, NULL, NULL);
It registers a callback to be called when the given gconf key changes.
In such a callback for the font key you could simple cause a rebuild of
the prebuild CSS in render_get_css().