aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index ea8c4f612..519c5297b 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -1282,7 +1282,7 @@ ephy_tab_get_status_message (EphyTab *tab)
static void
ephy_tab_set_title (EphyTab *tab, const char *new_title)
{
- char *title_short = NULL;
+ char *title_short, *title_tmp;
char *title = NULL;
g_return_if_fail (EPHY_IS_TAB (tab));
@@ -1332,16 +1332,18 @@ ephy_tab_set_title (EphyTab *tab, const char *new_title)
tab->priv->title = title;
title_short = ephy_string_shorten (title, MAX_LABEL_LENGTH);
+ title_tmp = ephy_string_double_underscores (title_short);
/**
* FIXME: instead of shortening the title here, use an egg action
* which creates menu items with ellipsizing labels
*/
g_object_set (G_OBJECT (tab->priv->action),
- "label", title_short,
+ "label", title_tmp,
NULL);
g_free (title_short);
+ g_free (title_tmp);
g_object_notify (G_OBJECT (tab), "title");
}