Enable tabbed browsing on OS3

This commit is contained in:
Chris Young 2016-01-31 17:02:24 +00:00
parent bf4382e3ec
commit 7729d93696

View File

@ -2162,8 +2162,13 @@ static void ami_handle_msg(void)
{ {
case GID_TABS: case GID_TABS:
if(gwin->objects[GID_TABS] == NULL) break; if(gwin->objects[GID_TABS] == NULL) break;
if(ClickTabBase->lib_Version >= 53) {
GetAttrs(gwin->objects[GID_TABS], GetAttrs(gwin->objects[GID_TABS],
CLICKTAB_NodeClosed, &tabnode, TAG_DONE); CLICKTAB_NodeClosed, &tabnode, TAG_DONE);
} else {
tabnode = NULL;
}
if(tabnode) { if(tabnode) {
struct gui_window *closedgw; struct gui_window *closedgw;
@ -3980,7 +3985,7 @@ gui_window_create(struct browser_window *bw,
if(ClickTabBase->lib_Version < 53) if(ClickTabBase->lib_Version < 53)
{ {
#ifdef __amigaos4__ //#ifdef __amigaos4__
addtabclosegadget = LAYOUT_AddChild; addtabclosegadget = LAYOUT_AddChild;
g->shared->objects[GID_CLOSETAB] = ButtonObj, g->shared->objects[GID_CLOSETAB] = ButtonObj,
GA_ID, GID_CLOSETAB, GA_ID, GID_CLOSETAB,
@ -4002,9 +4007,9 @@ gui_window_create(struct browser_window *bw,
GA_Text, "+", GA_Text, "+",
BUTTON_RenderImage, g->shared->objects[GID_ADDTAB_BM], BUTTON_RenderImage, g->shared->objects[GID_ADDTAB_BM],
ButtonEnd; ButtonEnd;
#else //#else
#warning OS3 tab bar permanently disabled! //#warning OS3 tab bar permanently disabled!
#endif //#endif
} }
else else
{ {