diff options
author | Martin Kretzschmar <martink@src.gnome.org> | 2005-01-22 20:18:39 (GMT) |
---|---|---|
committer | Martin Kretzschmar <martink@src.gnome.org> | 2005-01-22 20:18:39 (GMT) |
commit | 0e09c877a64b0059db885688acf65063bef2fdff (patch) | |
tree | 1a1bb96ebc72cc4e6f5a998c85bf6434703c34e4 /shell | |
parent | 9579900dce7ca117217f9482a7f646033000f5c1 (diff) |
(update_window_title): empty titles are useless, use filename in that
case too.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 9862351..d46d98d 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); } } |