From e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 24 Jan 2004 21:19:32 +0000 Subject: Double underscores, since otherwise the menu entry will display them as 2004-01-24 Christian Persch * src/ephy-tab.c: (ephy_tab_set_title): Double underscores, since otherwise the menu entry will display them as accellerators. --- ChangeLog | 7 +++++++ src/ephy-tab.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f2b08e4b1..62a21a147 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-01-24 Christian Persch + + * src/ephy-tab.c: (ephy_tab_set_title): + + Double underscores, since otherwise the menu entry will + display them as accellerators. + 2004-01-24 Christian Persch * embed/mozilla/EphyBrowser.cpp: 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"); } -- cgit v1.2.3