Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-09-26 19:18:07 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-09-26 19:18:07 (GMT)
commit3df5c48510b62c962b38b0ae663ae437b018d67e (patch)
tree69d6896c2d0e68c7a086dba0790399afc0d34d34
parent76cba1f77ab3903e649e65bc76293ca3c4225e3c (diff)
Strip the title string
2005-09-26 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-window-title.c: (ev_window_title_update): Strip the title string
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-window-title.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 01cdfde..b3b43de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-09-26 Marco Pesenti Gritti <mpg@redhat.com>
+ * shell/ev-window-title.c: (ev_window_title_update):
+
+ Strip the title string
+
+2005-09-26 Marco Pesenti Gritti <mpg@redhat.com>
+
* shell/ev-window-title.c:
Add .rtf to the bad extensions list
diff --git a/shell/ev-window-title.c b/shell/ev-window-title.c
index 574ace3..a7229e9 100644
--- a/shell/ev-window-title.c
+++ b/shell/ev-window-title.c
@@ -99,11 +99,13 @@ ev_window_title_update (EvWindowTitle *window_title)
EvPageCache *page_cache;
if (window_title->document != NULL) {
- const char *doc_title;
+ char *doc_title;
page_cache = ev_page_cache_get (window_title->document);
g_return_if_fail (page_cache != NULL);
- doc_title = ev_page_cache_get_title (page_cache);
+ doc_title = (char *)ev_page_cache_get_title (page_cache);
+
+ doc_title = g_strstrip (doc_title);
/* Make sure we get a valid title back */
if (doc_title && doc_title[0] != '\000' &&