+2005-04-17 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * djvu/Makefile.am:
+ * dvi/Makefile.am:
+ * shell/Makefile.am:
+
+ Move library dependencies to components.
+
+ * shell/ev-window.c: (update_window_title),
+ (start_loading_document):
+
+ Fix display of uris with spaces. Bug 168358.
+
Sat Apr 16 18:53:47 2005 Jonathan Blandford <jrb@redhat.com>
* shell/ev-sidebar-links.c: (selection_changed_cb):
if ENABLE_DJVU
evince_LDADD += \
- -ldjvulibre \
- -lpthread \
$(top_builddir)/djvu/libgtkdjvu.la \
$(NULL)
endif
$(NULL)
endif
-if WITH_TYPE1_FONTS
-evince_LDADD += -lt1lib
-endif
-
BUILT_SOURCES = ev-marshal.h ev-marshal.c
EXTRA_DIST = ev-marshal.list
gboolean password_needed;
password_needed = (ev_window->priv->password_document != NULL);
- if (document) {
+ if (document && ev_window->priv->page_cache) {
doc_title = ev_page_cache_get_title (ev_window->priv->page_cache);
/* Make sure we get a valid title back */
if (error->domain == EV_DOCUMENT_ERROR &&
error->code == EV_DOCUMENT_ERROR_ENCRYPTED) {
- char *file_name;
+ gchar *base_name, *file_name;
ev_window->priv->password_document = g_object_ref (document);
ev_window->priv->password_uri = g_strdup (uri);
- file_name = g_path_get_basename (uri);
+ base_name = g_path_get_basename (uri);
+ file_name = gnome_vfs_unescape_string_for_display (base_name);
+
ev_password_view_set_file_name (EV_PASSWORD_VIEW (ev_window->priv->password_view),
file_name);
g_free (file_name);
+ g_free (base_name);
ev_window_set_page_mode (ev_window, PAGE_MODE_PASSWORD);
ev_window_popup_password_dialog (ev_window);