Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ps
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-06-04 09:39:48 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-06-04 09:39:48 (GMT)
commitdbbd21a4d621a47629ac03ffc71651172f574138 (patch)
tree318dec35ac26574f35990d2f6f2a793fd773be24 /ps
parentbbd8576757758f6e6ffb633d61bab361337e7927 (diff)
Rework properties code to take only EvPropertyInfo in the constructor so
2005-06-04 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document-info.h: * backend/ev-document.c: (ev_document_info_free): * data/evince-properties.glade: * pdf/ev-poppler.cc: * ps/ps-document.c: (ps_document_get_info): * shell/ev-properties.c: (ev_properties_format_date), (set_property), (ev_properties_new): * shell/ev-properties.h: * shell/ev-window.c: (ev_window_cmd_file_properties): Rework properties code to take only EvPropertyInfo in the constructor so that it can be useful for nautilus plugin too. Deal with backends that doesnt support some properties. Make set property code generic.
Diffstat (limited to 'ps')
-rw-r--r--ps/ps-document.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ps/ps-document.c b/ps/ps-document.c
index 8684f4d..29a0638 100644
--- a/ps/ps-document.c
+++ b/ps/ps-document.c
@@ -1347,8 +1347,10 @@ ps_document_get_info (EvDocument *document)
PSDocument *ps = PS_DOCUMENT (document);
info = g_new0 (EvDocumentInfo, 1);
- info->fields_mask = EV_DOCUMENT_INFO_TITLE;
+ info->fields_mask = EV_DOCUMENT_INFO_TITLE |
+ EV_DOCUMENT_INFO_N_PAGES;
info->title = g_strdup (ps->doc->title);
+ info->n_pages = ev_document_get_n_pages (document);
return info;
}