Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
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 /backend
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 'backend')
-rw-r--r--backend/ev-document-info.h6
-rw-r--r--backend/ev-document.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/backend/ev-document-info.h b/backend/ev-document-info.h
index 299576c..77fecf2 100644
--- a/backend/ev-document-info.h
+++ b/backend/ev-document-info.h
@@ -88,7 +88,9 @@ typedef enum
EV_DOCUMENT_INFO_LINEARIZED = 1 << 10,
EV_DOCUMENT_INFO_START_MODE = 1 << 11,
EV_DOCUMENT_INFO_UI_HINTS = 1 << 12,
- EV_DOCUMENT_INFO_PERMISSIONS = 1 << 13
+ EV_DOCUMENT_INFO_PERMISSIONS = 1 << 13,
+ EV_DOCUMENT_INFO_N_PAGES = 1 << 14,
+ EV_DOCUMENT_INFO_SECURITY = 1 << 15
} EvDocumentInfoFields;
struct _EvDocumentInfo
@@ -101,12 +103,14 @@ struct _EvDocumentInfo
char *creator;
char *producer;
char *linearized;
+ char *security;
GTime *creation_date;
GTime *modified_date;
EvDocumentLayout layout;
EvDocumentMode mode;
guint ui_hints;
guint permissions;
+ int n_pages;
/* Mask of all the valid fields */
guint fields_mask;
diff --git a/backend/ev-document.c b/backend/ev-document.c
index 714becb..3793050 100644
--- a/backend/ev-document.c
+++ b/backend/ev-document.c
@@ -252,6 +252,7 @@ ev_document_info_free (EvDocumentInfo *info)
g_free (info->author);
g_free (info->subject);
g_free (info->keywords);
+ g_free (info->security);
g_free (info);
}