summaryrefslogtreecommitdiff
path: root/atari/rootwin.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-03-11 01:16:37 +0100
committerOle Loots <ole@monochrom.net>2013-03-11 01:16:37 +0100
commitfffaa149bc446afd14d6f8a2bc1f3a309774ece2 (patch)
treec5697b773a4ff97e77632bded1968655493015c5 /atari/rootwin.c
parent939f078dd89389c13ec0fe7886b2ccc9efab24c8 (diff)
downloadnetsurf-fffaa149bc446afd14d6f8a2bc1f3a309774ece2.tar.gz
netsurf-fffaa149bc446afd14d6f8a2bc1f3a309774ece2.tar.bz2
Correctly set initial size of the search area.
Diffstat (limited to 'atari/rootwin.c')
-rwxr-xr-xatari/rootwin.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/atari/rootwin.c b/atari/rootwin.c
index 45f55684f..5b66a25de 100755
--- a/atari/rootwin.c
+++ b/atari/rootwin.c
@@ -392,9 +392,17 @@ void window_open(ROOTWIN *rootwin, struct gui_window *gw, GRECT pos)
if(rootwin->statusbar != NULL) {
sb_attach(rootwin->statusbar, rootwin->active_gui_window);
}
+
+ /* Set initial size of the toolbar region: */
gemtk_wm_get_grect(rootwin->win, GEMTK_WM_AREA_TOOLBAR, &g);
toolbar_set_attached(rootwin->toolbar, true);
toolbar_set_dimensions(rootwin->toolbar, &g);
+
+ /* initially hide the search area of the toolbar: */
+ toolbar_set_visible(rootwin->toolbar, TOOLBAR_AREA_SEARCH, false);
+ window_get_grect(rootwin, BROWSER_AREA_TOOLBAR, &g);
+ gemtk_wm_set_toolbar_size(rootwin->win, g.g_h);
+
window_update_back_forward(rootwin);
window_set_focus(rootwin, BROWSER, rootwin->active_gui_window->browser);
@@ -978,7 +986,7 @@ void window_process_redraws(ROOTWIN * rootwin)
redraw_active = true;
- toolbar_get_grect(rootwin->toolbar, 0, &tb_area);
+ window_get_grect(rootwin, BROWSER_AREA_TOOLBAR, &tb_area);
//gemtk_wm_set_toolbar_size(rootwin->win, tb_area.g_h);
window_get_grect(rootwin, BROWSER_AREA_CONTENT, &content_area);