]> www.fi.muni.cz Git - evince.git/commitdiff
Strip the title string
authorMarco Pesenti Gritti <mpg@redhat.com>
Mon, 26 Sep 2005 19:18:07 +0000 (19:18 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 26 Sep 2005 19:18:07 +0000 (19:18 +0000)
2005-09-26  Marco Pesenti Gritti  <mpg@redhat.com>

        * shell/ev-window-title.c: (ev_window_title_update):

        Strip the title string

ChangeLog
shell/ev-window-title.c

index 01cdfde7e39bbdc99d4b32532b5f058728cda4c1..b3b43de9f09cc07bcbfcfe91e195caa0b595221b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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:
index 574ace3ea67f12c408dce61a0a90cba6f6f68d49..a7229e9d259f9dda40398733bd208a7a7aa6038f 100644 (file)
@@ -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' &&