diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-25 05:19:32 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-25 05:19:32 +0800 |
commit | e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1 (patch) | |
tree | 61bac783ca2806e71d584248083926aaae33e3d3 | |
parent | 0518fff76056458a5d6d3c246ed459b0f2e8ed04 (diff) | |
download | gsoc2013-epiphany-e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1.tar gsoc2013-epiphany-e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1.tar.gz gsoc2013-epiphany-e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1.tar.bz2 gsoc2013-epiphany-e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1.tar.lz gsoc2013-epiphany-e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1.tar.xz gsoc2013-epiphany-e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1.tar.zst gsoc2013-epiphany-e5ebb969ecfa6403f7dbf9e3aad84a73cbcf34e1.zip |
Double underscores, since otherwise the menu entry will display them as
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.
-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"); } |