From 9c551589bd0a2214706e18ff80720875cf5b9860 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Wed, 11 Sep 2013 00:12:42 +0200 Subject: Added comments. --- atari/history.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'atari/history.c') diff --git a/atari/history.c b/atari/history.c index 1a19d4adc..6da8eebce 100755 --- a/atari/history.c +++ b/atari/history.c @@ -107,15 +107,24 @@ bool atari_global_history_init( void ) GRECT desk; int flags = ATARI_TREEVIEW_WIDGETS; + // initialize state options: gl_history.open = false; + + // Create an AES window: handle = wind_create(flags, 40, 40, desk_area.g_w, desk_area.g_h); + + // add the AES window to the gemtk window manager: gl_history.window = gemtk_wm_add(handle, GEMTK_WM_FLAG_DEFAULTS, NULL); + if( gl_history.window == NULL ) { LOG(("Failed to allocate history window")); return( false ); } + + // Set window title: wind_set_str(handle, WF_NAME, (char*)messages_get("GlobalHistory")); + // Make the window part of the netsurf treeview framework: gl_history.tv = atari_treeview_create(TREE_HISTORY, gl_history.window, handle_event); -- cgit v1.2.3