netsurf/frontends/gtk
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
..
res Explicitely support http and https URI schemes in the .desktop 2016-07-22 11:50:07 +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 Update content to split public and internal API 2016-06-06 09:01:38 +01:00
bitmap.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
compat.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
compat.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
completion.c msplit public url database API out for frontends 2016-06-13 23:34:45 +01:00
completion.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
cookies.c Treeview: Rationalise initialisation and finalisation. 2016-08-10 18:57:36 +01:00
cookies.h make gtk cookies manager use core window API 2016-07-31 13:25:20 +01:00
corewindow.c add nsgtk support for core window API 2016-07-31 13:25:20 +01:00
corewindow.h add nsgtk support for core window API 2016-07-31 13:25:20 +01:00
download.c move download header into public API 2016-05-30 11:15:58 +01:00
download.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
fetch.c move fetch header into public API 2016-05-30 11:29:39 +01:00
fetch.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
gdk.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
gdk.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
gettext.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
gettext.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
global_history.c Treeview: Rationalise initialisation and finalisation. 2016-08-10 18:57:36 +01:00
global_history.h rename gtk global history implementation 2016-08-04 23:50:06 +01:00
gui.c remove unused GTK treeview code completely repalced with core window API 2016-08-06 17:11:29 +01:00
gui.h store toolbar config in standard options instead of a separate file 2016-05-21 12:17:49 +01:00
hotlist.c Treeview: Rationalise initialisation and finalisation. 2016-08-10 18:57:36 +01:00
hotlist.h convert GTK hotlist to use GTK core window 2016-08-06 17:08:21 +01:00
layout_pango.c move layout header into public API 2016-05-30 11:31:35 +01:00
layout_pango.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
login.c msplit public url database API out for frontends 2016-06-13 23:34:45 +01:00
login.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
Makefile remove unused GTK treeview code completely repalced with core window API 2016-08-06 17:11:29 +01:00
Makefile.defaults move frontends into sub directory 2016-05-15 13:44:34 +01:00
menu.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
menu.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
options.h store toolbar config in standard options instead of a separate file 2016-05-21 12:17:49 +01:00
plotters.c move plotters header into public API 2016-05-30 21:05:57 +01:00
plotters.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
preferences.c move desktop window header into public API 2016-05-30 17:32:57 +01:00
preferences.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
print.c reduce unecessary usage of content headers 2016-06-06 16:10:47 +01:00
print.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
resources.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
resources.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
scaffolding.c convert GTK hotlist to use GTK core window 2016-08-06 17:08:21 +01:00
scaffolding.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 reduce unecessary usage of content headers 2016-06-06 16:10:47 +01:00
search.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
selection.c move desktop window header into public API 2016-05-30 17:32:57 +01:00
selection.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
sexy_icon_entry.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
sexy_icon_entry.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
ssl_cert.c Treeview: Rationalise initialisation and finalisation. 2016-08-10 18:57:36 +01:00
ssl_cert.h make gtk certificate viewing use gtk core window API 2016-07-31 13:25:20 +01:00
tabs.c reduce unecessary usage of content headers 2016-06-06 16:10:47 +01:00
tabs.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
throbber.c move frontends into sub directory 2016-05-15 13:44:34 +01:00
throbber.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
toolbar.c move desktop window header into public API 2016-05-30 17:32:57 +01:00
toolbar.h rationalise use of gtk scaffolding header 2016-05-21 14:37:20 +01:00
viewdata.c reduce unecessary usage of content headers 2016-06-06 16:10:47 +01:00
viewdata.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
viewsource.c Update content to split public and internal API 2016-06-06 09:01:38 +01:00
viewsource.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
warn.h move frontends into sub directory 2016-05-15 13:44:34 +01:00
window.c move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
window.h rationalise use of gtk scaffolding header 2016-05-21 14:37:20 +01:00