gedit remains open when last tab closed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ayatana Design |
Opinion
|
Undecided
|
Unassigned | ||
One Hundred Papercuts |
Invalid
|
Undecided
|
Unassigned | ||
gedit |
Won't Fix
|
Wishlist
|
|||
gedit (Ubuntu) |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: gedit
Gedit uses a MDI model; in particular, tabs. When the last tab in Gedit is closed, Gedit remains open with no tabs. Gedit should be modified to close the application when the last tab is closed.
Rationale:
Ubuntu ships a number of application that use tab interfaces; for example: Firefox, Chrome/Chromium, Pidgin (conversation window), Nautilus, Eclipse, Monodevelop, etc. I find that all of these applications except Eclipse and similar (so, development environments) will terminate once the last tab is closed.
Firefox: will make is difficult for the user to close the last tab (either by hiding the tab bar when only one tab is open, or by removing the X button in the last remaining tab). However, the last tab can be closed by CTRL+W (although this command, found in the File menu, changes name from 'close tab' to just 'close' when only one tab is open), or by a mouse gesture bound to 'close current tab' (if using such an add-on). Once the last tab is closed, the whole window instance closes.
Chrome: closing the last tab is easy with the X button in the tab itself. When the last tab is closed, the application instance closes.
Pidgin conversation window: hides the tab bar when only one tab open, so technically the ability to close tabs is taken away when there is only one tab, and the user is forced to close the entire conversation window. Still: no tabs, no window.
Nautilus: similar to Pidgin conversation window.
Applications like Eclipse, Monodevelop etc. use a different model: they can continue running with zero tabs open.
I would argue that, since Gedit is likely to be used by non-technical users on a daily basis (being the default text editor/previewer), Gedit should be patched to behave consistently with applications like Firefox and Nautilus; that is, to either hide the tab bar when there is only one document loaded, or to terminate itself when the last tab is closed. I argue this should be done primarily in the name of user interface consistency of the platform.
Since Gedit can be used as more than a simple text editor, even as a full fledged IDE, Gedit should be patched to allow reverting to the old behavior, but this option should be disabled by default.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gedit 2.30.3-1ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-23-generic i686
NonfreeKernelMo
Architecture: i386
CheckboxSubmission: e80c1a0bc531b19
CheckboxSystem: b845c366ea09c60
Date: Sat Dec 11 18:16:13 2010
ExecutablePath: /usr/bin/gedit
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
LANGUAGE=en
LANG=hr_HR.utf8
SHELL=/bin/bash
SourcePackage: gedit
Changed in gedit: | |
importance: | Unknown → Wishlist |
status: | Unknown → Won't Fix |
I would agree that Gedit should behave similarly to other applications, and I would suggest that it mimic Nautilus in it's treatment of tabs, ie hide the tab bar when there is only a single tab open meaning closing the application is the only option to close that last tab.
An option should be placed in the preferences pane to allow this behavior to be disabled, thus allowing the application to constantly display the tab bar and to remain open after the last tab has been closed.