summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/reference/eom-sections.txt1
-rw-r--r--src/eom-image.c8
-rw-r--r--src/eom-image.h1
3 files changed, 10 insertions, 0 deletions
diff --git a/doc/reference/eom-sections.txt b/doc/reference/eom-sections.txt
index ffdba98..c88d0b4 100644
--- a/doc/reference/eom-sections.txt
+++ b/doc/reference/eom-sections.txt
@@ -39,6 +39,7 @@ eom_image_undo
eom_image_get_supported_mime_types
eom_image_is_supported_mime_type
eom_image_file_changed
+eom_image_is_file_changed
<SUBSECTION Standard>
EOM_IMAGE
EOM_IS_IMAGE
diff --git a/src/eom-image.c b/src/eom-image.c
index c2fb5eb..724d849 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -2237,3 +2237,11 @@ eom_image_file_changed (EomImage *img)
img->priv->file_is_changed = TRUE;
g_signal_emit (img, signals[SIGNAL_FILE_CHANGED], 0);
}
+
+gboolean
+eom_image_is_file_changed (EomImage *img)
+{
+ g_return_val_if_fail (EOM_IS_IMAGE (img), TRUE);
+
+ return img->priv->file_is_changed;
+}
diff --git a/src/eom-image.h b/src/eom-image.h
index 5e3fe84..f93c8ac 100644
--- a/src/eom-image.h
+++ b/src/eom-image.h
@@ -212,6 +212,7 @@ EomTransform *eom_image_get_transform (EomImage *img);
#endif
void eom_image_file_changed (EomImage *img);
+gboolean eom_image_is_file_changed (EomImage *img);
G_END_DECLS