netsurf/frontends
Michael Drake 9aecf47408 Treeview: Rationalise initialisation and finalisation.
Previously the expected behaviour for front ends using the correct
API for hotlist, global history, cookie manager, and ssl cert
viewer was that the front end would initialise the treeview module
on startup and finalise it on application exit.

However, this meant that the front ends had to include the core
treeview header, which they didn't otherwise need.

Since the tree module provided access to the new treeview utilities
through the old tree API, and was used by front ends with no changes
for the new treeview API, the tree layer refcounted initialisations
of treeview-based widgets, and only called the underlying treeview
init/fini functions when needed.

This change moves that refcounting into the treeview module.  Now
the hotlist, global history, cookie manager, and ssl cert viewer
widgets call call treeview init/fini as part of their own
initialisation and finalisation.  This means that front ends
using the correct APIs for treeview-based widgets don't need to
know anything about the underlying treeview, and the tree module
compatibility layer has had its treeview refcounting removed.

Finally, the treeview_init function took a font size parameter.
Now it does not and lit gets font size from config.  We probably
want to add a new `treeview_font_size` option to nsoptions, and
have differnent defaults on different platforms. 12pt on RISC OS,
and 11pt elsewhere, most likely.
2016-08-10 18:57:36 +01:00
..
amiga Use the API for duplicating IORequests 2016-08-10 17:54:26 +01:00
atari Treeview: Rationalise initialisation and finalisation. 2016-08-10 18:57:36 +01:00
beos URL unescape: return the new length to the caller. 2016-07-24 14:03:16 +01:00
cocoa Allow certificate verification user prompt creation to return errors 2016-07-31 13:25:20 +01:00
framebuffer add header for memcpy prototype 2016-07-15 14:40:40 +01:00
gtk Treeview: Rationalise initialisation and finalisation. 2016-08-10 18:57:36 +01:00
monkey Allow certificate verification user prompt creation to return errors 2016-07-31 13:25:20 +01:00
riscos Treeview: Rationalise initialisation and finalisation. 2016-08-10 18:57:36 +01:00
windows URL unescape: return the new length to the caller. 2016-07-24 14:03:16 +01:00
Makefile Allow include directories to be added by sub makefiles 2016-06-06 14:47:27 +01:00