From: Marco Pesenti Gritti Date: Mon, 26 Sep 2005 19:18:07 +0000 (+0000) Subject: Strip the title string X-Git-Tag: EVINCE_0_5_0~128 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=3df5c48510b62c962b38b0ae663ae437b018d67e;p=evince.git Strip the title string 2005-09-26 Marco Pesenti Gritti * shell/ev-window-title.c: (ev_window_title_update): Strip the title string --- diff --git a/ChangeLog b/ChangeLog index 01cdfde7..b3b43de9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-26 Marco Pesenti Gritti + + * shell/ev-window-title.c: (ev_window_title_update): + + Strip the title string + 2005-09-26 Marco Pesenti Gritti * shell/ev-window-title.c: diff --git a/shell/ev-window-title.c b/shell/ev-window-title.c index 574ace3e..a7229e9d 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' &&