]> www.fi.muni.cz Git - evince.git/commitdiff
(update_window_title): empty titles are useless, use filename in that
authorMartin Kretzschmar <martink@src.gnome.org>
Sat, 22 Jan 2005 20:18:39 +0000 (20:18 +0000)
committerMartin Kretzschmar <martink@src.gnome.org>
Sat, 22 Jan 2005 20:18:39 +0000 (20:18 +0000)
case too.

ChangeLog
shell/ev-window.c

index ab284bbdaacf9393f6a9d31626b2219d90dcf011..1021ef48b72ffa4abdd5834101021199e8e25dba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-01-22  Martin Kretzschmar  <martink@gnome.org>
 
+       * 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  <clarkbw@cvs.gnome.org>
index 9862351890a2f4fe6dc756a58e68a9ab0cd564be..d46d98d98de386107eea5d865576a730a0e887b6 100644 (file)
@@ -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);
                }
        }