diff options
author | Ole Loots <ole@monochrom.net> | 2013-09-15 00:59:24 +0200 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-10-06 01:24:14 +0200 |
commit | 342c0d936123811c21b981f7acd6f17aff6767b3 (patch) | |
tree | d5a1856b15e3248267a3d60d9089da81723d219b | |
parent | cd9971293d135b944bd03b299244b1145d9e6938 (diff) | |
download | netsurf-342c0d936123811c21b981f7acd6f17aff6767b3.tar.gz netsurf-342c0d936123811c21b981f7acd6f17aff6767b3.tar.bz2 |
Added initialization/finalization of treeview framework.
-rw-r--r-- | atari/gui.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/atari/gui.c b/atari/gui.c index 8db4765db..83731b4de 100644 --- a/atari/gui.c +++ b/atari/gui.c @@ -43,6 +43,7 @@ #include "utils/nsoption.h" #include "desktop/save_complete.h" #include "desktop/textinput.h" +#include "desktop/treeview.h" #include "desktop/browser.h" #include "desktop/browser_private.h" #include "desktop/mouse.h" @@ -804,16 +805,24 @@ void gui_quit(void) struct gui_window * gw = window_list; struct gui_window * tmp = window_list; + /* Destroy all remaining browser windows: */ while( gw ) { tmp = gw->next; browser_window_destroy(gw->browser->bw); gw = tmp; } + /* destroy the treeview windows: */ atari_global_history_destroy(); atari_hotlist_destroy(); + + /* shutdown netsurf treeview framework: */ + treeview_fini(); + + /* shutdown the toolbar framework: */ toolbar_exit(); + /* save persistent informations: */ urldb_save_cookies(nsoption_charp(cookie_file)); urldb_save(nsoption_charp(url_file)); @@ -1019,8 +1028,15 @@ static void gui_init2(int argc, char** argv) menu_register( _AESapid, (char*)" NetSurf "); } gemtk_wm_init(); + + /* Initialize the netsurf treeview framework with default font size: */ + treeview_init(0); + + /* Initialize the specific treeview windows: */ atari_global_history_init(); atari_hotlist_init(); + + /* Initialize the toolbar framework: */ toolbar_init(); } |