aboutsummaryrefslogtreecommitdiffstats
path: root/src/statusbar.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-05-04 00:51:29 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-04 00:51:29 +0800
commit3f4726c21f495297332c5cedae66e636ba88a1a0 (patch)
tree8a640bf6d7bf43d70b76566f913026c14742ec2e /src/statusbar.c
parent14e235f2eb930212dcdf8eca1dccfdcf56cd933e (diff)
downloadgsoc2013-epiphany-3f4726c21f495297332c5cedae66e636ba88a1a0.tar
gsoc2013-epiphany-3f4726c21f495297332c5cedae66e636ba88a1a0.tar.gz
gsoc2013-epiphany-3f4726c21f495297332c5cedae66e636ba88a1a0.tar.bz2
gsoc2013-epiphany-3f4726c21f495297332c5cedae66e636ba88a1a0.tar.lz
gsoc2013-epiphany-3f4726c21f495297332c5cedae66e636ba88a1a0.tar.xz
gsoc2013-epiphany-3f4726c21f495297332c5cedae66e636ba88a1a0.tar.zst
gsoc2013-epiphany-3f4726c21f495297332c5cedae66e636ba88a1a0.zip
Search for ui files in the share dir
2003-05-03 Marco Pesenti Gritti <marco@it.gnome.org> * src/ephy-nautilus-view.c: (ephy_nautilus_view_instance_init), (gnv_bonobo_control_activate_cb): Search for ui files in the share dir * src/statusbar.c: (statusbar_set_message): Strip \n \r from messages * src/toolbar.c: Allow reorder of bookmarks
Diffstat (limited to 'src/statusbar.c')
-rwxr-xr-xsrc/statusbar.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/statusbar.c b/src/statusbar.c
index 8ff6b4402..71a97274d 100755
--- a/src/statusbar.c
+++ b/src/statusbar.c
@@ -18,6 +18,7 @@
#include "statusbar.h"
#include "ephy-stock-icons.h"
+#include "ephy-string.h"
#include <string.h>
#include <time.h>
@@ -196,9 +197,17 @@ void
statusbar_set_message (Statusbar *s,
const char *message)
{
+ char *tmp1, *tmp2;
+
g_return_if_fail (message != NULL);
+ tmp1 = ephy_str_strip_chr (message, '\r');
+ tmp2 = ephy_str_strip_chr (tmp1, '\n');
+
gtk_statusbar_pop (GTK_STATUSBAR (s), 0);
- gtk_statusbar_push (GTK_STATUSBAR (s), 0, message);
+ gtk_statusbar_push (GTK_STATUSBAR (s), 0, tmp2);
+
+ g_free (tmp1);
+ g_free (tmp2);
}