diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-09-26 23:36:56 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-09-26 23:36:56 +0100 |
commit | d2534e0e74dc3bd9122263fd6e59cd3b185ffbb2 (patch) | |
tree | acc80990b5dcc8c6bd95000d519eb819fce2a7a0 /frontends/amiga | |
parent | 9eba2716932484329c0b687b490e38f9c9c9337d (diff) | |
download | netsurf-d2534e0e74dc3bd9122263fd6e59cd3b185ffbb2.tar.gz netsurf-d2534e0e74dc3bd9122263fd6e59cd3b185ffbb2.tar.bz2 |
Button disable state updates should now work correctly on OS3
Diffstat (limited to 'frontends/amiga')
-rw-r--r-- | frontends/amiga/gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index eca5b927c..d88c577ce 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -1225,12 +1225,10 @@ static void ami_update_buttons(struct gui_window_2 *gwin) } } -#ifdef __amigaos4__ GetAttr(GA_Disabled, gwin->objects[GID_BACK], (uint32 *)&s_back); GetAttr(GA_Disabled, gwin->objects[GID_FORWARD], (uint32 *)&s_forward); GetAttr(GA_Disabled, gwin->objects[GID_RELOAD], (uint32 *)&s_reload); GetAttr(GA_Disabled, gwin->objects[GID_STOP], (uint32 *)&s_stop); -#endif if(BOOL_MISMATCH(s_back, back)) SetGadgetAttrs((struct Gadget *)gwin->objects[GID_BACK], @@ -1250,9 +1248,9 @@ static void ami_update_buttons(struct gui_window_2 *gwin) if(ClickTabBase->lib_Version < 53) { if(gwin->tabs <= 1) tabclose = TRUE; -#ifdef __amigaos4__ + GetAttr(GA_Disabled, gwin->objects[GID_CLOSETAB], (uint32 *)&s_tabclose); -#endif + if(BOOL_MISMATCH(s_tabclose, tabclose)) SetGadgetAttrs((struct Gadget *)gwin->objects[GID_CLOSETAB], gwin->win, NULL, GA_Disabled, tabclose, TAG_DONE); |