Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2009-05-03 08:21:17 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@yandex.ru>2009-05-03 08:21:17 (GMT)
commit28ffb1e81e22421674091f6ad73613684bad12de (patch)
tree5f7da21bf328c220ce35b99b73e8e94d5692a7a8 /shell/ev-window.c
parent4a0680e34b63098c3d8b6a48b613958acd3e47a9 (diff)
[ui] Escape URIs for display
Uses uri escaping function to make more sensible URI's to display them. Fixes GNOME bug #581064.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 92f5089..5d99f66 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1586,12 +1586,15 @@ show_loading_progress (EvWindow *ev_window)
{
GtkWidget *area;
gchar *text;
+ gchar *display_name;
if (ev_window->priv->message_area)
return FALSE;
-
- text = g_strdup_printf (_("Loading document from %s"),
- ev_window->priv->uri);
+
+ display_name = escape_uri_for_display (ev_window->priv->uri);
+ text = g_strdup_printf (_("Loading document from ā€œ%sā€"),
+ display_name);
+
area = ev_progress_message_area_new (GTK_STOCK_OPEN,
text,
GTK_STOCK_CLOSE,
@@ -1604,7 +1607,9 @@ show_loading_progress (EvWindow *ev_window)
ev_window);
gtk_widget_show (area);
ev_window_set_message_area (ev_window, area);
+
g_free (text);
+ g_free (display_name);
return FALSE;
}