summaryrefslogtreecommitdiff
path: root/atari/rootwin.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-11-29 02:01:13 +0100
committerOle Loots <ole@monochrom.net>2012-11-29 02:01:13 +0100
commit1b93b72b9b731bb1844d5941e5165ff0ebc6711a (patch)
tree90ae6b57e574949a8ebbafdcfa60ea4888c50f2b /atari/rootwin.c
parent9ec2e77b2782454facda6858ca04735cb03f6743 (diff)
downloadnetsurf-1b93b72b9b731bb1844d5941e5165ff0ebc6711a.tar.gz
netsurf-1b93b72b9b731bb1844d5941e5165ff0ebc6711a.tar.bz2
re-implemented browser toolbar redraw / URL area redraw.
Diffstat (limited to 'atari/rootwin.c')
-rwxr-xr-xatari/rootwin.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/atari/rootwin.c b/atari/rootwin.c
index c0ad68863..11a4a425e 100755
--- a/atari/rootwin.c
+++ b/atari/rootwin.c
@@ -189,8 +189,10 @@ int window_create(struct gui_window * gw,
return( -1 );
memset( gw->root, 0, sizeof(struct s_gui_win_root) );
gw->root->title = malloc(atari_sysinfo.aes_max_win_title_len+1);
- // TODO: use desk size
+ redraw_slots_init(&gw->root->redraw_slots, 8);
+
+ // TODO: use desk size
aes_handle = wind_create(flags, 40, 40, app.w, app.h);
if(aes_handle<0) {
free(gw->root->title);
@@ -200,7 +202,12 @@ int window_create(struct gui_window * gw,
gw->root->win = guiwin_add(aes_handle,
GW_FLAG_PREPROC_WM | GW_FLAG_RECV_PREPROC_WM, handle_event);
+ struct rootwin_data_s * data = malloc(sizeof(struct rootwin_data_s));
+ data->rootwin = gw->root;
+ guiwin_set_user_data(gw->root->win, (void*)data);
+
/* create toolbar component: */
+ guiwin_set_toolbar(gw->root->win, get_tree(TOOLBAR), 0, 0);
if( tb ) {
gw->root->toolbar = toolbar_create(gw->root);
assert(gw->root->toolbar);
@@ -224,13 +231,6 @@ int window_create(struct gui_window * gw,
wind_set(aes_handle, WF_OPTS, 1, WO0_NOBLITW, 0, 0);
wind_set(aes_handle, WF_OPTS, 1, WO0_NOBLITH, 0, 0);
- redraw_slots_init(&gw->root->redraw_slots, 8);
-
- guiwin_set_toolbar(gw->root->win, get_tree(TOOLBAR), 0, 0);
- struct rootwin_data_s * data = malloc(sizeof(struct rootwin_data_s));
- data->rootwin = gw->root;
- guiwin_set_user_data(gw->root->win, (void*)data);
-
if (inflags & WIN_TOP) {
window_set_focus(gw->root, BROWSER, gw->browser);
}