summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-15 23:48:56 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-15 23:48:56 +0000
commit1391057332cf4922b993e5e76daecd89aeb87876 (patch)
tree49222f405644bc9b461be3932a9d523cada67362 /amiga/gui.c
parent6255e8b1dce63995c8eb1fc6db177ce982e69911 (diff)
downloadnetsurf-1391057332cf4922b993e5e76daecd89aeb87876.tar.gz
netsurf-1391057332cf4922b993e5e76daecd89aeb87876.tar.bz2
Change another instance of the tab number being used as identification. Now we set the tab numbers as they must be unique, but don't use them internally.
Diffstat (limited to 'amiga/gui.c')
-rw-r--r--amiga/gui.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index e8283707e..1775e4870 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2774,21 +2774,16 @@ void ami_change_tab(struct gui_window_2 *gwin, int direction)
if(gwin->tabs <= 1) return;
- if(direction > 0)
- {
+ if(direction > 0) {
ptab = GetSucc(tab_node);
- }
- else
- {
+ } else {
ptab = GetPred(tab_node);
}
if(!ptab) return;
- GetClickTabNodeAttrs(ptab, TNA_Number, (ULONG *)&ptabnum, TAG_DONE);
-
RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_TABS], gwin->win, NULL,
- CLICKTAB_Current, ptabnum,
+ CLICKTAB_CurrentNode, ptab,
TAG_DONE);
ami_switch_tab(gwin, true);