summaryrefslogtreecommitdiff
path: root/desktop/netsurf.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-01-30 13:40:47 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-01-30 13:40:47 +0000
commitfbb1139214f3c4fa7925c572eca05e27873e05ea (patch)
treed076cc1b3e3425aebf24728182594730e2060413 /desktop/netsurf.c
parent42f89d4e0b35bbe768918305b624e20ef654d619 (diff)
downloadnetsurf-fbb1139214f3c4fa7925c572eca05e27873e05ea.tar.gz
netsurf-fbb1139214f3c4fa7925c572eca05e27873e05ea.tar.bz2
add default system colour handlers to each frontend
svn path=/trunk/netsurf/; revision=11530
Diffstat (limited to 'desktop/netsurf.c')
-rw-r--r--desktop/netsurf.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index fc51a99e0..d0b57b569 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -152,6 +152,9 @@ nserror netsurf_init(int *pargc,
llcache_initialise(netsurf_llcache_query_handler, NULL);
+ /* Initialize system colours */
+ gui_system_colour_init();
+
return NSERROR_OK;
}
@@ -177,20 +180,31 @@ void netsurf_exit(void)
{
LOG(("Closing GUI"));
gui_quit();
+
LOG(("Closing search and related resources"));
search_web_cleanup();
+
LOG(("Finalising high-level cache"));
hlcache_finalise();
+
LOG(("Finalising low-level cache"));
llcache_finalise();
+
LOG(("Closing fetches"));
fetch_quit();
+
LOG(("Closing utf8"));
utf8_finalise();
+
LOG(("Destroying URLdb"));
urldb_destroy();
+
+ LOG(("Destroying System colours"));
+ gui_system_colour_finalize();
+
LOG(("Remaining lwc strings:"));
lwc_iterate_strings(netsurf_lwc_iterator, NULL);
+
LOG(("Exited successfully"));
}