diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/ephy-tab.c | 6 |
2 files changed, 11 insertions, 2 deletions
@@ -1,5 +1,12 @@ 2004-01-24 Christian Persch <chpe@cvs.gnome.org> + * 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 <chpe@cvs.gnome.org> + * embed/mozilla/EphyBrowser.cpp: When checking forms for modifications, handle correctly 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"); } |