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 706781 - tab names are not updated when using 'set title'
tab names are not updated when using 'set title'
Status: RESOLVED DUPLICATE of bug 720693
Product: gnome-terminal
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
[design]
Depends on:
Blocks:
 
 
Reported: 2013-08-26 07:34 UTC by darkxst
Modified: 2014-04-12 18:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description darkxst 2013-08-26 07:34:55 UTC
If I right click on a tab, and try to set the title, The tab title is not actually updated. It just always shows the default <user@host: path> title
Comment 1 Colin Guthrie 2013-09-16 19:43:55 UTC
Yup I see this too.
Comment 2 Colin Guthrie 2013-09-18 08:01:11 UTC
This is fixed for me in 3.9.92.
Comment 3 Christian Persch 2013-09-18 13:11:36 UTC
3.9.92 comes from gnome-3-10 which was branched off of gnome-3-8, while this bug only affects master.
Comment 4 Colin Guthrie 2013-09-18 13:18:10 UTC
Hmm, "only" master? It affected 3.9.91 at least for me... but you know best :)
Comment 5 Colin Guthrie 2013-09-18 13:20:03 UTC
Updated version to "master" from "3.9.x" as per comment 3.
Comment 6 Christian Persch 2013-09-18 13:21:53 UTC
That's because 3.9.x before 92 were actually from master.
Comment 7 Volker Sobek (weld) 2014-04-07 20:51:52 UTC
This can be made working again with something like (didn't consider ownership of the returned string yet):
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -708,7 +708,11 @@ terminal_screen_exec (TerminalScreen *screen,
 const char*
 terminal_screen_get_title (TerminalScreen *screen)
 {
-  return vte_terminal_get_window_title (VTE_TERMINAL (screen));
+  TerminalScreenPrivate *priv = screen->priv;
+  const char *title;
+
+  title = priv->title ? priv->title : vte_terminal_get_window_title (VTE_TERMINAL (screen));
+  return title;
 }
 
 const char*
@@ -1572,6 +1576,7 @@ terminal_screen_set_user_title (TerminalScreen *screen,
   g_free (priv->title);
   priv->title = title && title[0] ? g_strdup (title) : NULL;
 
+  g_object_notify (G_OBJECT (screen), "title");
   g_object_notify (G_OBJECT (screen), "description");
 }
Comment 8 Christian Persch 2014-04-12 18:41:53 UTC

*** This bug has been marked as a duplicate of bug 720693 ***