After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 705487 - API to add a close button to notebook tabs
API to add a close button to notebook tabs
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkNotebook
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 725123
 
 
Reported: 2013-08-05 10:44 UTC by William Jon McCann
Modified: 2017-06-28 08:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2013-08-05 10:44:37 UTC
Many applications have code to add close buttons to notebook tabs. Not having a standard way to do this makes it more difficult for application developers and causes inconsistency. It also prevents us from doing smart things with close buttons such as adapting to the input device.
Comment 1 Emmanuele Bassi (:ebassi) 2017-06-28 08:24:07 UTC
Four years later, and nobody really elaborated on this.

From a consistency standpoint, packing a button into a tab widget should not cause wildly different results. I fail to understand what adapting to different devices would entail, but that's generally what gestures are for.

Closing tabs from a toolkit is also fairly dangerous: the toolkit lacks all the information needed to, for instance, undo an operation, or ask for a confirmation, or simply understand what the contents of the tab are.

I strongly believe this is application territory, and as such it's the remit of the application to add a close button to the tab widget, and handle its behaviour.