GNOME Bugzilla – Bug 613642
Allow hiding the tab bar
Last modified: 2021-06-10 20:06:28 UTC
We allow hiding menubar. It would be useful to allow hiding tabbar also. This is useful in fullscreen mode mostly. Ideally one would want an overlay tabbar if mouse is moved to the tabbar edge in fullscreen, but we don't have the widgets for that right now. I'm attaching patch that copies the show-menubar machinery (gconf, action, pref, menu, popup, cmdline option, session save) to add a show-tabbar. I consider this preliminary work thought since I think we should resolve bug 78776 at the same time also. That is, profile setting for this should be a combo having: "Always, Never, Only for multiple tabs". Comments please?
Created attachment 156812 [details] [review] Draft patch
Should this really be a profile setting? I know the default-show-menubar one is a profile pref too, but I don't think that makes any sense really. IMHO it should just be a global pref.
I agree this needs to be a tristate of never, sometimes, always. I also agree that these UI tweaks don't really belong into profiles.
I agree about profile more or less (I can see both sides). However, we don't have any global config. Profiles are our only configuration and I think some people appreciate that. If we want to change that, it's a bigger project that goes beyond the scope of this bug. Comment on the current patch: the "Show Tabs" menu item should be hidden when there's only one tab.
We do have some global settings: global/use_mnemonics, global/use_menu_accelerators for example. The patch in bug 78776 adds a global setting, so that could certainly be adapted to the tristate. However, probably not worth producing another patch right now, since all pref related things are going to be re-done when porting to gsettings next cycle.
I'll work on a tristate profile option then.
I added a global pref now on master; although I didn't go for the elaborate apply-once --show-menubar like logic that the patch from comment 0 did. I only allowed 'always' and 'automatic' (ie > 1 tab) for now. 'never' has several problems: the window shrinks when switching from 'never' to 'always'/'automatic' (with > 1 tab), and switching tabs doesn't work since gtknotebook inhibits the key sequences normally used when show-tabs is FALSE. So if someone wans to add support for 'never', these need to be fixed first.
*** Bug 78776 has been marked as a duplicate of this bug. ***
How can I enable this option? I couldn't find it in dconf-editor. Should I open a new bug on gitlab to ask for it to be exposed? I'd like to see how gnome-terminal manages the case of showing only one tab. I've had an equivalent option in roxterm for years and it defaults to always on. It used to switch between a fixed size single tab and homogeneous/fill for multiple tabs, but the fixed size created problems so now it's always homogeneous/fill. That doesn't look attractive, but the presence of the new tab button just about makes it acceptable.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/6979.