]> www.fi.muni.cz Git - evince.git/commitdiff
[libdocument] Add document_is_modified() to EvDocumentForms interface
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 2 Aug 2010 18:39:30 +0000 (20:39 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 2 Aug 2010 18:57:56 +0000 (20:57 +0200)
libdocument/ev-document-forms.c
libdocument/ev-document-forms.h

index c6d558ba33587432082048de87bb2398963ec890..19417c7798eb1594a6bd9e941d12627f7f5f44f0 100644 (file)
@@ -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)
index 32ec6a171e598fcd9e8c4b8462342e9cfb2289a9..198f3eb5ea4aaf98e0f10968ce00b07f521bf3c6 100644 (file)
@@ -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);