summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-07-02 22:04:51 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-07-02 22:04:51 +0000
commitbdc0d994c117d80a7cd18ae9755978e532736376 (patch)
treedd4db253e900f3127533318459755b4b1ae629b4 /amiga/gui.c
parent910c6d314fc356a8b8628b3ff7b26c3ff289a4dd (diff)
downloadnetsurf-bdc0d994c117d80a7cd18ae9755978e532736376.tar.gz
netsurf-bdc0d994c117d80a7cd18ae9755978e532736376.tar.bz2
Add an option to open new tabs next to the current tab. Needs some additional logic
as opening multiple tabs results in the new tabs being in reverse order to that expected. svn path=/trunk/netsurf/; revision=12559
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index ba6245feb..6e115c2d8 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2411,7 +2411,14 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
TNA_CloseGadget, TRUE,
TAG_DONE);
- AddTail(&gwin->shared->tab_list,gwin->tab_node);
+ if(option_new_tab_last)
+ {
+ AddTail(&gwin->shared->tab_list, gwin->tab_node);
+ }
+ else
+ {
+ Insert(&gwin->shared->tab_list, gwin->tab_node, clone->window->tab_node);
+ }
RefreshSetGadgetAttrs((struct Gadget *)gwin->shared->objects[GID_TABS],
gwin->shared->win, NULL,