summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-09-11 00:12:42 +0200
committerOle Loots <ole@monochrom.net>2013-09-11 00:12:42 +0200
commit9c551589bd0a2214706e18ff80720875cf5b9860 (patch)
tree1c95ea4c2fbf196942769b6f56016a9c83ac8421
parentc04cef649a163c3131c8560d44fb3dd458929345 (diff)
downloadnetsurf-9c551589bd0a2214706e18ff80720875cf5b9860.tar.gz
netsurf-9c551589bd0a2214706e18ff80720875cf5b9860.tar.bz2
Added comments.
-rw-r--r--atari/gemtk/guiwin.c5
-rwxr-xr-xatari/history.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/atari/gemtk/guiwin.c b/atari/gemtk/guiwin.c
index 30f70c271..01f548305 100644
--- a/atari/gemtk/guiwin.c
+++ b/atari/gemtk/guiwin.c
@@ -1185,7 +1185,10 @@ void gemtk_wm_send_msg(GUIWIN *win, short msg_type, short a, short b, short c,
appl_write(gl_apid, 16, &msg);
}
-/** Directly execute an Message to a GUIWIN using internal dispatcher
+/** Directly execute an Message to a GUIWIN using the internal dispatcher function.
+* This only works for managed windows which have the,
+ GEMTK_WM_FLAG_PREPROC_WM flag set.
+ This call does not send any AES messages.
* \param win the GUIWIN which shall receive the message
* \param msg_type the WM_ message definition
* \param a the 4th parameter to appl_write
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);