mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 10:42:36 +03:00
Enable tabbed browsing on OS3
This commit is contained in:
parent
bf4382e3ec
commit
7729d93696
13
amiga/gui.c
13
amiga/gui.c
@ -2162,8 +2162,13 @@ static void ami_handle_msg(void)
|
||||
{
|
||||
case GID_TABS:
|
||||
if(gwin->objects[GID_TABS] == NULL) break;
|
||||
if(ClickTabBase->lib_Version >= 53) {
|
||||
GetAttrs(gwin->objects[GID_TABS],
|
||||
CLICKTAB_NodeClosed, &tabnode, TAG_DONE);
|
||||
} else {
|
||||
tabnode = NULL;
|
||||
}
|
||||
|
||||
if(tabnode) {
|
||||
struct gui_window *closedgw;
|
||||
|
||||
@ -3980,7 +3985,7 @@ gui_window_create(struct browser_window *bw,
|
||||
|
||||
if(ClickTabBase->lib_Version < 53)
|
||||
{
|
||||
#ifdef __amigaos4__
|
||||
//#ifdef __amigaos4__
|
||||
addtabclosegadget = LAYOUT_AddChild;
|
||||
g->shared->objects[GID_CLOSETAB] = ButtonObj,
|
||||
GA_ID, GID_CLOSETAB,
|
||||
@ -4002,9 +4007,9 @@ gui_window_create(struct browser_window *bw,
|
||||
GA_Text, "+",
|
||||
BUTTON_RenderImage, g->shared->objects[GID_ADDTAB_BM],
|
||||
ButtonEnd;
|
||||
#else
|
||||
#warning OS3 tab bar permanently disabled!
|
||||
#endif
|
||||
//#else
|
||||
//#warning OS3 tab bar permanently disabled!
|
||||
//#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user