From fbb1139214f3c4fa7925c572eca05e27873e05ea Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 30 Jan 2011 13:40:47 +0000 Subject: add default system colour handlers to each frontend svn path=/trunk/netsurf/; revision=11530 --- desktop/netsurf.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'desktop/netsurf.c') 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")); } -- cgit v1.2.3