gnome-terminal r3222 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r3222 - trunk/src
- Date: Sat, 29 Nov 2008 19:49:25 +0000 (UTC)
Author: chpe
Date: Sat Nov 29 19:49:25 2008
New Revision: 3222
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3222&view=rev
Log:
Persist the override title, not the raw title.
Modified:
trunk/src/terminal-screen.c
Modified: trunk/src/terminal-screen.c
==============================================================================
--- trunk/src/terminal-screen.c (original)
+++ trunk/src/terminal-screen.c Sat Nov 29 19:49:25 2008
@@ -1687,9 +1687,11 @@
const char *title)
{
TerminalScreenPrivate *priv = screen->priv;
-
- g_assert (priv->override_title == NULL);
+ const char *old_title;
+
+ old_title = priv->override_title;
priv->override_title = g_strdup (title);
+ g_free (old_title);
terminal_screen_set_dynamic_title (screen, title, FALSE);
terminal_screen_set_dynamic_icon_title (screen, title, FALSE);
@@ -2260,9 +2262,8 @@
terminal_util_key_file_set_argv (key_file, group, TERMINAL_CONFIG_TERMINAL_PROP_COMMAND,
-1, priv->override_command);
- /* FIXMEchpe: only persist user-set titles here */
- if (priv->raw_title)
- g_key_file_set_string (key_file, group, TERMINAL_CONFIG_TERMINAL_PROP_TITLE, priv->raw_title);
+ if (priv->override_title)
+ g_key_file_set_string (key_file, group, TERMINAL_CONFIG_TERMINAL_PROP_TITLE, priv->override_title);
dir = terminal_screen_get_working_dir (screen);
if (dir != NULL && *dir != '\0') /* should always be TRUE anyhow */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]