[evince] [libdocument] Add document_is_modified() to EvDocumentForms interface



commit ebf9f109a65f51280b833f16688f41f2a62bb2c6
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Mon Aug 2 20:39:30 2010 +0200

    [libdocument] Add document_is_modified() to EvDocumentForms interface

 libdocument/ev-document-forms.c |    8 ++++++++
 libdocument/ev-document-forms.h |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/libdocument/ev-document-forms.c b/libdocument/ev-document-forms.c
index c6d558b..19417c7 100644
--- a/libdocument/ev-document-forms.c
+++ b/libdocument/ev-document-forms.c
@@ -37,6 +37,14 @@ ev_document_forms_get_form_fields (EvDocumentForms *document_forms,
 	return iface->get_form_fields (document_forms, page);
 }
 
+gboolean
+ev_document_forms_document_is_modified (EvDocumentForms *document_forms)
+{
+	EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+
+	return (iface->document_is_modified) ? iface->document_is_modified (document_forms) : FALSE;
+}
+
 gchar *
 ev_document_forms_form_field_text_get_text (EvDocumentForms *document_forms, 
 					    EvFormField     *field)
diff --git a/libdocument/ev-document-forms.h b/libdocument/ev-document-forms.h
index 32ec6a1..198f3eb 100644
--- a/libdocument/ev-document-forms.h
+++ b/libdocument/ev-document-forms.h
@@ -50,6 +50,7 @@ struct _EvDocumentFormsInterface
 	/* Methods  */
 	EvMappingList *(* get_form_fields)                    (EvDocumentForms   *document_forms,
 							       EvPage            *page);
+	gboolean       (* document_is_modified)               (EvDocumentForms   *document_forms);
 	gchar         *(* form_field_text_get_text)           (EvDocumentForms   *document_forms,
 							       EvFormField       *field);
 	void           (* form_field_text_set_text)           (EvDocumentForms   *document_forms,
@@ -86,6 +87,7 @@ struct _EvDocumentFormsInterface
 GType          ev_document_forms_get_type                           (void) G_GNUC_CONST;
 EvMappingList *ev_document_forms_get_form_fields                    (EvDocumentForms   *document_forms,
 								     EvPage            *page);
+gboolean       ev_document_forms_document_is_modified               (EvDocumentForms   *document_forms);
 
 gchar 	      *ev_document_forms_form_field_text_get_text           (EvDocumentForms   *document_forms,
 								     EvFormField       *field);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]