aboutsummaryrefslogtreecommitdiff
path: root/src/ld-document.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2010-12-11 15:00:48 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2010-12-11 20:31:54 +0100
commite364267010db1242757f67ad9c7aef5abc2c3103 (patch)
tree5d2894d8763426e1f99d0f2d60b84b5e79924992 /src/ld-document.h
parent805089c38ff4dcac34017c8857f231e5ff8e43f0 (diff)
downloadlogdiag-e364267010db1242757f67ad9c7aef5abc2c3103.tar.gz
logdiag-e364267010db1242757f67ad9c7aef5abc2c3103.tar.xz
logdiag-e364267010db1242757f67ad9c7aef5abc2c3103.zip
Add a "modified" property to LdDocument.
The property is set to TRUE whenever the document changes. The user may set it back to FALSE with ld_document_set_modified(). Also don't emit the "changed" signal when nothing has happened.
Diffstat (limited to 'src/ld-document.h')
-rw-r--r--src/ld-document.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ld-document.h b/src/ld-document.h
index 12d59cb..a27fe23 100644
--- a/src/ld-document.h
+++ b/src/ld-document.h
@@ -48,7 +48,10 @@ struct _LdDocumentClass
/*< private >*/
GObjectClass parent_class;
+ /* FIXME: Add a selection_changed signal? */
guint changed_signal;
+
+ void (*changed) (LdDocument *self);
};
@@ -61,6 +64,9 @@ gboolean ld_document_load_from_file (LdDocument *self,
gboolean ld_document_save_to_file (LdDocument *self,
const gchar *filename, GError *error);
+gboolean ld_document_get_modified (LdDocument *self);
+void ld_document_set_modified (LdDocument *self, gboolean value);
+
GSList *ld_document_get_objects (LdDocument *self);
void ld_document_insert_object (LdDocument *self,
LdDocumentObject *object, gint pos);