From: Martin Kretzschmar Date: Sat, 22 Jan 2005 20:18:39 +0000 (+0000) Subject: (update_window_title): empty titles are useless, use filename in that X-Git-Tag: EVINCE_0_1_1~7 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=0e09c877a64b0059db885688acf65063bef2fdff;p=evince.git (update_window_title): empty titles are useless, use filename in that case too. --- diff --git a/ChangeLog b/ChangeLog index ab284bbd..1021ef48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-01-22 Martin Kretzschmar + * shell/ev-window.c (update_window_title): empty titles are + useless, use filename in that case too. + * NEWS: Add some content. 2005-01-21 Bryan Clark diff --git a/shell/ev-window.c b/shell/ev-window.c index 98623518..d46d98d9 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -335,7 +335,7 @@ update_window_title (EvDocument *document, GParamSpec *pspec, EvWindow *ev_windo } else { title = ev_document_get_title (document); - if (title == NULL) { + if (title == NULL || (title && strlen (title) == 0)) { title = g_path_get_basename (ev_window->priv->uri); } }