summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-12-01 15:15:12 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-12-01 15:15:12 +0000
commitee79de52446499e56ff6986af1c08d866fd670d5 (patch)
tree153bd645084ab428eb6065218b08a77455c8c9cf /amiga/gui.c
parent1e2cc766cdb16f1a5ef3201df5601ffbc22a8bc8 (diff)
downloadnetsurf-ee79de52446499e56ff6986af1c08d866fd670d5.tar.gz
netsurf-ee79de52446499e56ff6986af1c08d866fd670d5.tar.bz2
Attempt to do some re-layout if the toolbar is added after the window opens.
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 92ad3542a..6efa99ab4 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2517,6 +2517,11 @@ void ami_gui_hotlist_toolbar_add(struct gui_window_2 *gwin)
RethinkLayout((struct Gadget *)gwin->objects[GID_MAIN],
gwin->win, NULL, TRUE);
+
+ if(gwin->win) {
+ gwin->redraw_required = true;
+ gwin->bw->reformat_pending = true;
+ }
}
}
@@ -4295,7 +4300,7 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg
break;
case GID_HOTLIST:
- if(node = GetTagData(SPEEDBAR_SelectedNode, 0, msg->IAddress)) {
+ if(node = (struct Node *)GetTagData(SPEEDBAR_SelectedNode, 0, msg->IAddress)) {
GetSpeedButtonNodeAttrs(node, SBNA_UserData, (ULONG *)&url, TAG_DONE);
browser_window_go(gwin->bw, url, NULL, true);
}