diff options
author | Ole Loots <ole@monochrom.net> | 2012-11-20 00:29:20 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-11-20 00:29:20 +0100 |
commit | 5449303bd1bf27e4cc8baccb0985e4d52c563caf (patch) | |
tree | 61609556966052c5bdfa25f56002159f88f727f5 /atari/history.c | |
parent | 9676253184e001d46a9ceb4e36c47484e169f272 (diff) | |
download | netsurf-5449303bd1bf27e4cc8baccb0985e4d52c563caf.tar.gz netsurf-5449303bd1bf27e4cc8baccb0985e4d52c563caf.tar.bz2 |
Ripped Windom out of the treeview implementation,
it still requires scroll event handling to be implemented.
Diffstat (limited to 'atari/history.c')
-rwxr-xr-x | atari/history.c | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/atari/history.c b/atari/history.c index ad5deb2bd..0df7ec476 100755 --- a/atari/history.c +++ b/atari/history.c @@ -86,33 +86,35 @@ static void __CDECL evnt_history_mbutton( WINDOW *win, short buff[8] ) bool global_history_init( void ) { - if( gl_history.init == false ) { - - int flags = ATARI_TREEVIEW_WIDGETS; - gl_history.open = false; - gl_history.window = WindCreate( flags, 40, 40, app.w, app.h ); - if( gl_history.window == NULL ) { - LOG(("Failed to allocate history window")); - return( false ); - } - WindSetStr(gl_history.window, WF_NAME, messages_get("GlobalHistory")); - //WindSetPtr( gl_history.window, WF_TOOLBAR, tree, evnt_history_toolbar ); - EvntAttach( gl_history.window, WM_CLOSED, evnt_history_close ); - EvntAttach( gl_history.window, WM_XBUTTON,evnt_history_mbutton ); - - gl_history.tv = atari_treeview_create( - history_global_get_tree_flags(), - gl_history.window - ); - if (gl_history.tv == NULL) { - /* handle it properly, clean up previous allocs */ - LOG(("Failed to allocate history treeview")); - return( false ); - } - - history_global_initialise( gl_history.tv->tree, "dir.png" ); - gl_history.init = true; - } + return(true); +// if( gl_history.init == false ) { +// +// int flags = ATARI_TREEVIEW_WIDGETS; +// gl_history.open = false; +// gl_history.window = WindCreate( flags, 40, 40, app.w, app.h ); +// if( gl_history.window == NULL ) { +// LOG(("Failed to allocate history window")); +// return( false ); +// } +// WindSetStr(gl_history.window, WF_NAME, messages_get("GlobalHistory")); +// //WindSetPtr( gl_history.window, WF_TOOLBAR, tree, evnt_history_toolbar ); +// EvntAttach( gl_history.window, WM_CLOSED, evnt_history_close ); +// EvntAttach( gl_history.window, WM_XBUTTON,evnt_history_mbutton ); +// +// gl_history.tv = atari_treeview_create( +// history_global_get_tree_flags(), +// gl_history.window, +// NULL +// ); +// if (gl_history.tv == NULL) { +// /* handle it properly, clean up previous allocs */ +// LOG(("Failed to allocate history treeview")); +// return( false ); +// } +// +// history_global_initialise( gl_history.tv->tree, "dir.png" ); +// gl_history.init = true; +// } return( true ); } |