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 627986 - Middle click to close tabs (like Firefox)
Middle click to close tabs (like Firefox)
Status: RESOLVED DUPLICATE of bug 445402
Product: gedit
Classification: Applications
Component: general
2.30.x
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-25 21:31 UTC by Daniel Ellis
Modified: 2010-08-26 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add the ability to close a tab using the middle mouse button (979 bytes, patch)
2010-08-25 22:06 UTC, Daniel Ellis
none Details | Review
Better implementation of closing a tab using middle click (941 bytes, patch)
2010-08-26 11:30 UTC, Daniel Ellis
none Details | Review

Description Daniel Ellis 2010-08-25 21:31:23 UTC
I would find it useful if you could close gedit tabs by middle clicking on the tab.  Firefox has this ability and it is much quicker and easier than locating the relatively small cross.

I have managed to create a patch for this feature, but am still just beginning with Linux development.  I thought this small enhancement (which has bugged me for a while) would be a good place to start!
Comment 1 Garrett Regier 2010-08-25 21:37:50 UTC

*** This bug has been marked as a duplicate of bug 445402 ***
Comment 2 Daniel Ellis 2010-08-25 22:06:29 UTC
Created attachment 168771 [details] [review]
Patch to add the ability to close a tab using the middle mouse button

The last comment on this issue was back in 2007 with a clear message that this was not desirable in Gnome.  Is it time to re-evaluate now that both Firefox and Chrome handle it in this way?  Anyway, here is the patch for anyone who wants it.
Comment 3 Daniel Ellis 2010-08-26 11:30:10 UTC
Created attachment 168800 [details] [review]
Better implementation of closing a tab using middle click

The first patch was not suitable, because it would always close the active tab, not the tab which was clicked on.  Essentially I think the first patch was in the wrong place altogether.

This patch only changes gedit-tab-label.c and the click handler simply sends the same "CLOSE_CLICKED" signal that the close button sends.