diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2005-01-03 18:18:57 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-01-03 18:18:57 (GMT) |
commit | 81ab197b294eaaba8b6b99bf2c259c5adb1e2251 (patch) | |
tree | a46eb3b64bd16e26c890e8990cb3fe9c1d18b0f2 /pdf | |
parent | f53f3523ebc7a082eb8a1c046cee836b67696912 (diff) |
Fix document title bugs and fallback to filename when not available.
2005-01-03 Marco Pesenti Gritti <marco@gnome.org>
* backend/ev-document.c: (ev_document_class_init):
* pdf/xpdf/pdf-document.cc:
* shell/ev-window.c: (ev_window_open):
Fix document title bugs and fallback to
filename when not available.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/xpdf/pdf-document.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc index ede8f77..284b371 100644 --- a/pdf/xpdf/pdf-document.cc +++ b/pdf/xpdf/pdf-document.cc @@ -928,6 +928,8 @@ pdf_document_get_title (PdfDocument *pdf_document) if (info.isDict ()) { title = pdf_info_dict_get_string (info.getDict(), "Title"); } + + return title; } static void @@ -942,7 +944,7 @@ pdf_document_get_property (GObject *object, switch (prop_id) { case PROP_TITLE: - title = pdf_document_get_title (pdf_document); + title = pdf_document_get_title (pdf_document); g_value_set_string (value, title); g_free (title); break; |