summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-09-15 00:59:24 +0200
committerOle Loots <ole@monochrom.net>2013-09-15 00:59:24 +0200
commit436580cfde3ddba153f4e411d3c3b91cd036979a (patch)
treec462da11375aad723d0b4fd70d877f79ea46e54b
parentb96222d8571237919bbfc7d85d43a2d46cfe262f (diff)
downloadnetsurf-436580cfde3ddba153f4e411d3c3b91cd036979a.tar.gz
netsurf-436580cfde3ddba153f4e411d3c3b91cd036979a.tar.bz2
Added initialization/finalization of treeview framework.
-rw-r--r--atari/gui.c16
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();
}