aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-12-14 06:29:00 +0800
committerChristian Persch <chpe@src.gnome.org>2003-12-14 06:29:00 +0800
commitc7fa7407b02c593b79492a2c57369af10032ec0d (patch)
treeff6d06c79053b7e2399ca5fc104fbc59a30a3de9 /src
parent0dfeadba7950238d8f31b8a7fd1135e014d133b3 (diff)
downloadgsoc2013-epiphany-c7fa7407b02c593b79492a2c57369af10032ec0d.tar
gsoc2013-epiphany-c7fa7407b02c593b79492a2c57369af10032ec0d.tar.gz
gsoc2013-epiphany-c7fa7407b02c593b79492a2c57369af10032ec0d.tar.bz2
gsoc2013-epiphany-c7fa7407b02c593b79492a2c57369af10032ec0d.tar.lz
gsoc2013-epiphany-c7fa7407b02c593b79492a2c57369af10032ec0d.tar.xz
gsoc2013-epiphany-c7fa7407b02c593b79492a2c57369af10032ec0d.tar.zst
gsoc2013-epiphany-c7fa7407b02c593b79492a2c57369af10032ec0d.zip
Convert control chars to blanks.
2003-12-13 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-string.c: (ephy_string_shorten), (ephy_string_to_int), (ephy_string_blank_chr), (ephy_string_elide_underscores), (ephy_string_double_underscores): * lib/ephy-string.h: * src/ephy-tab.c: (ephy_tab_set_link_message): Convert control chars to blanks.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index fb4c26393..5df39cec9 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -450,18 +450,10 @@ ephy_tab_get_load_status (EphyTab *tab)
static void
ephy_tab_set_link_message (EphyTab *tab, char *message)
{
- char *tmp1, *tmp2;
-
g_return_if_fail (EPHY_IS_TAB (tab));
- tmp1 = ephy_string_strip_chr (message, '\r');
- tmp2 = ephy_string_strip_chr (tmp1, '\n');
-
g_free (tab->priv->link_message);
- tab->priv->link_message = tmp2;
-
- g_free (tmp1);
- g_free (message);
+ tab->priv->link_message = ephy_string_blank_chr (message);
g_object_notify (G_OBJECT (tab), "message");
}