From 02a4bfd375110c268837931a8714fab0dc154d50 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 9 Dec 2012 20:39:10 +0000 Subject: Toggle the tab bar to the correct state if the option to always show it is changed and only one tab is currently open --- amiga/gui.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index 60d9d3127..bd0715edb 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2703,6 +2703,33 @@ void ami_toggletabbar(struct gui_window_2 *gwin, bool show) } } +void ami_gui_tabs_toggle_all(void) +{ + struct nsObject *node; + struct nsObject *nnode; + struct gui_window_2 *gwin; + + if(IsMinListEmpty(window_list)) return; + + node = (struct nsObject *)GetHead((struct List *)window_list); + + do { + nnode=(struct nsObject *)GetSucc((struct Node *)node); + gwin = node->objstruct; + + if(node->Type == AMINS_WINDOW) + { + if(gwin->tabs == 1) { + if(nsoption_bool(tab_always_show) == true) { + ami_toggletabbar(gwin, true); + } else { + ami_toggletabbar(gwin, false); + } + } + } + } while(node = nnode); +} + struct gui_window *gui_create_browser_window(struct browser_window *bw, struct browser_window *clone, bool new_tab) { -- cgit v1.2.3