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 170096 - Double click to change title of tab
Double click to change title of tab
Status: RESOLVED WONTFIX
Product: gnome-terminal
Classification: Core
Component: general
2.10.x
Other All
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 109778 549500 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-12 20:17 UTC by Luka Napotnik
Modified: 2008-08-26 20:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
terminal_window.c.diff (3.83 KB, patch)
2005-03-12 20:26 UTC, Olav Vitters
needs-work Details | Review
terminal_window.h.diff (1.15 KB, patch)
2005-03-12 20:27 UTC, Olav Vitters
none Details | Review
Changelog (171 bytes, patch)
2005-03-12 20:27 UTC, Olav Vitters
none Details | Review

Description Luka Napotnik 2005-03-12 20:17:41 UTC
I have made a small patch for gnome-terminal 2.10. It enables to set the tab
title by double clicking on it. The hack still has a bug with selecting the
tabs. So any help would be welcome.

The patch can be found at:
http://freeweb.siol.net/lukan12/gnome-terminal-2.10-ln1_patch.tar

Greets,
Luka

Other information:
I packed the tab label into a GtkEventBox. Then I make a signal for double
clicking the event box. If there's a single click, a function(code from Galeon)
gets the tab number and shows the selected tab. If it's a double click, the
Change title dialog appears, usually available from the menu choice.
Comment 1 Olav Vitters 2005-03-12 20:26:47 UTC
Created attachment 38605 [details] [review]
terminal_window.c.diff
Comment 2 Olav Vitters 2005-03-12 20:27:09 UTC
Created attachment 38606 [details] [review]
terminal_window.h.diff
Comment 3 Olav Vitters 2005-03-12 20:27:28 UTC
Created attachment 38607 [details] [review]
Changelog
Comment 4 Olav Vitters 2005-03-12 20:30:46 UTC
I've put the files into Bugzilla so these are always available. This is actually
the same as bug 109778, but since this bug has a patch, I'm duplicating that bug
to this one.
Note: The maintainer is either on a vacation or very busy... it may take awhile
before anyone looks at the patch. Anyway thanks for making it.
Comment 5 Olav Vitters 2005-03-12 20:32:04 UTC
*** Bug 109778 has been marked as a duplicate of this bug. ***
Comment 6 Luka Napotnik 2005-03-13 10:44:55 UTC
I found out why the strange behaviour when selecting tabs. The couse is the
packing settings for the notebook. If I change the expand and fill for the
notebook packing, then the tab selection works perfect.

From:
gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (window->priv->notebook),
                                      hbox,
                                      TRUE, TRUE, GTK_PACK_START);

To:
gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (window->priv->notebook),
                                      hbox,
                                      FALSE, FALSE, GTK_PACK_START);

But then the tabs are radically placed to the left side and the tab title
doesn't get pretty becose the ellipsize of the labe needs to get bigger.
Comment 7 Luka Napotnik 2005-03-13 12:15:29 UTC
No I was wrong, the bug is still there. There's something wring when doing x, y
calculations to get the page number of the notebook.
Comment 8 John Ellson 2005-04-03 03:40:15 UTC
Perhaps this feature is the cause of the failure of focus-follows-mouse
that I reported into RedHat's Bugzilla?
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=149327

Assuming its actually a good idea to have editable tab labels (I'm not so sure
myself) I suggest that focus should be dropped as soon as the mouse
leaves the tab area so that focus-follows-mouse to the main text areas
of the terminals.
Comment 9 fernan 2006-08-31 11:53:45 UTC
I think it's a good idea to be able to quickly set the titles of tabs ... a double click might be it, though, in my case, my intuition made me try first to Ctrl-click on the tab :)

Either that, or adding a key combo (Ctrl-T?) to avoid having to use the mouse to go to the menu and select the corresponging action ...

[I was thinking about submitting to bugzilla as a feature request and going over the list of already filed issues I've found this one. I don't know if it's appropriate to comment here since I'm not reviewing patches or fixing the issue thats been discussed with the douclbe click .... let me know if I should clone this or open a separate bug]
Comment 10 Calum Benson 2006-08-31 13:37:20 UTC
I would suggest this feature request be added to bug #72101 or http://live.gnome.org/TabImplementation, as it sounds like the sort of thing that should be consistent across any apps that require it.
Comment 11 Christian Persch 2008-05-31 20:33:33 UTC
Setting patch status base on comment 6 & following.
Comment 12 Christian Persch 2008-06-22 12:11:03 UTC
Using double click to set the tab title is WONTFIX.
Bug 153521 asks for this to be available from the tab context menu.
Comment 13 Christian Persch 2008-08-26 20:53:27 UTC
*** Bug 549500 has been marked as a duplicate of this bug. ***