summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-25 13:59:55 +0200
committerinfirit <[email protected]>2014-07-25 13:59:55 +0200
commit477065ee6778e48b5a3c11794deabbc49a97e3e0 (patch)
tree0af4f354cd81e1c66e1c702bc4478b5ac5a5e3db
parent49522507d46e185a92151baf304f00ed5d2fcea0 (diff)
downloadeom-477065ee6778e48b5a3c11794deabbc49a97e3e0.tar.bz2
eom-477065ee6778e48b5a3c11794deabbc49a97e3e0.tar.xz
Add eom_image_is_file_changed()
Based on eog commit 50390e87fe4f14f3a68ca93b3048127c15244750 From Claudio Saavedra <[email protected]>
-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