netsurf/frontends/atari
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
..
doc move frontends into sub directory 2016-05-15 13:44:34 +01:00
gemtk move frontends into sub directory 2016-05-15 13:44:34 +01:00
plot fix missing includes from header API changes 2016-05-30 21:21:09 +01:00
res move frontends into sub directory 2016-05-15 13:44:34 +01:00
scripts move frontends into sub directory 2016-05-15 13:44:34 +01:00
about.c move desktop window header into public API 2016-05-30 17:32:57 +01:00
about.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
bitmap.c move mouse and pointer state header into public API 2016-05-30 12:10:08 +01:00
bitmap.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
certview.c remove unecessary core window header usage 2016-06-30 19:50:14 +01:00
certview.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
clipboard.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
clipboard.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
cookies.c remove unecessary core window header usage 2016-06-30 19:50:14 +01:00
cookies.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
ctxmenu.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
ctxmenu.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
deskmenu.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
deskmenu.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
download.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
download.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
encoding.c move utf8 header into public API 2016-05-30 11:20:15 +01:00
encoding.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
extract.php move frontends into sub directory 2016-05-15 13:44:34 +01:00
file.c URL escape: Simplify to avoid unnecessary allocation. 2016-07-25 09:04:35 +01:00
file.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
filetype.c remove unecessary content API usage from atari frontend 2016-06-08 15:30:25 +01:00
filetype.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
findfile.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
findfile.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
font.c move plotters header into public API 2016-05-30 21:05:57 +01:00
font.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
gui.c Treeview: Rationalise initialisation and finalisation. 2016-08-10 18:57:36 +01:00
gui.h move mouse and pointer state header into public API 2016-05-30 12:10:08 +01:00
history.c remove unecessary core window header usage 2016-06-30 19:50:14 +01:00
history.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
hotlist.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
hotlist.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
login.c remove unecessary content API usage from atari frontend 2016-06-08 15:30:25 +01:00
login.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
Makefile move frontends into sub directory 2016-05-15 13:44:34 +01:00
Makefile.defaults move frontends into sub directory 2016-05-15 13:44:34 +01:00
misc.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
misc.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
options.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
osspec.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
osspec.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
redrawslots.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
redrawslots.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
rootwin.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
rootwin.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
save.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
schedule.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
schedule.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
search.c move desktop window header into public API 2016-05-30 17:32:57 +01:00
search.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
settings.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
settings.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
statusbar.c move plotters header into public API 2016-05-30 21:05:57 +01:00
statusbar.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
toolbar.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
toolbar.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
treeview.c remove unecessary core window header usage 2016-06-30 19:50:14 +01:00
treeview.h remove unecessary core window header usage 2016-06-30 19:50:14 +01:00
verify_ssl.c remove unecessary content API usage from atari frontend 2016-06-08 15:30:25 +01:00
verify_ssl.h move frontends into sub directory 2016-05-15 13:44:34 +01:00