Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--shell/ev-window.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index be9db9a..12f6a33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-15 Martin Kretzschmar <martink@gnome.org>
+
+ * shell/ev-window.c (update_window_title): replace newlines in
+ the title by spaces. Bug #166107.
+
2005-02-14 Martin Kretzschmar <martink@gnome.org>
* shell/ev-view.c (ev_view_best_fit, ev_view_fit_width): add
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 547eaf0..49b5a99 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -354,6 +354,17 @@ update_window_title (EvDocument *document, GParamSpec *pspec, EvWindow *ev_windo
}
}
}
+
+ if (doc_title) {
+ char *p;
+
+ for (p = doc_title; *p; ++p) {
+ /* an '\n' byte is always ASCII, no need for UTF-8 special casing */
+ if (*p == '\n')
+ *p = ' ';
+ }
+ }
+
if (doc_title == NULL && ev_window->priv->uri) {
doc_title = g_path_get_basename (ev_window->priv->uri);
}