diff options
author | Ole Loots <ole@monochrom.net> | 2012-12-21 00:56:50 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-12-21 00:56:50 +0100 |
commit | f7ee2a03876bf4a5cf66b3a433955e4e55d91362 (patch) | |
tree | 146748923e9aaa464fac29306cc51cb06ef589ec /atari/history.c | |
parent | 3019368c93600a335445c09178c9554074c7f656 (diff) | |
download | netsurf-f7ee2a03876bf4a5cf66b3a433955e4e55d91362.tar.gz netsurf-f7ee2a03876bf4a5cf66b3a433955e4e55d91362.tar.bz2 |
- started to work on settings dialog
- some WIP in treeview widgets. Changed destroy / and init handling.
It requires some optimization, when the widget is closed
it must remove itself from the guiwin list, for perfomance.
Diffstat (limited to 'atari/history.c')
-rwxr-xr-x | atari/history.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/atari/history.c b/atari/history.c index f9faef555..77df2c921 100755 --- a/atari/history.c +++ b/atari/history.c @@ -38,6 +38,10 @@ #include "atari/res/netsurf.rsh" #include "atari/history.h" + +//TODO: remove/add guiwin handle on close / open - so that the list +// is kept tiny. + extern char * tree_directory_icon_name; extern GRECT desk_area; @@ -46,6 +50,7 @@ struct s_atari_global_history gl_history; void global_history_open( void ) { + global_history_init(); if (gl_history.init == false ) { return; } @@ -132,10 +137,6 @@ bool global_history_init( void ) void global_history_destroy( void ) { -void global_history_redraw( void )
-{
- atari_treeview_redraw( gl_history.tv );
-} if( gl_history.init == false ) { return; } @@ -152,4 +153,9 @@ void global_history_redraw( void ) LOG(("done")); } +void global_history_redraw( void )
+{
+ atari_treeview_redraw( gl_history.tv );
+} + |