[eog] Add eog_image_is_file_changed()
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Add eog_image_is_file_changed()
- Date: Wed, 6 Oct 2010 19:24:41 +0000 (UTC)
commit 50390e87fe4f14f3a68ca93b3048127c15244750
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon Sep 13 18:35:42 2010 +0300
Add eog_image_is_file_changed()
doc/reference/eog-sections.txt | 1 +
src/eog-image.c | 8 ++++++++
src/eog-image.h | 2 ++
3 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/doc/reference/eog-sections.txt b/doc/reference/eog-sections.txt
index 0a1593b..90be50e 100644
--- a/doc/reference/eog-sections.txt
+++ b/doc/reference/eog-sections.txt
@@ -39,6 +39,7 @@ eog_image_undo
eog_image_get_supported_mime_types
eog_image_is_supported_mime_type
eog_image_file_changed
+eog_image_is_file_changed
<SUBSECTION Standard>
EOG_IMAGE
EOG_IS_IMAGE
diff --git a/src/eog-image.c b/src/eog-image.c
index 4fbfdec..71ebc68 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -2240,3 +2240,11 @@ eog_image_file_changed (EogImage *img)
img->priv->file_is_changed = TRUE;
g_signal_emit (img, signals[SIGNAL_FILE_CHANGED], 0);
}
+
+gboolean
+eog_image_is_file_changed (EogImage *img)
+{
+ g_return_val_if_fail (EOG_IS_IMAGE (img), TRUE);
+
+ return img->priv->file_is_changed;
+}
diff --git a/src/eog-image.h b/src/eog-image.h
index 2855983..72122c0 100644
--- a/src/eog-image.h
+++ b/src/eog-image.h
@@ -213,6 +213,8 @@ EogTransform *eog_image_get_transform (EogImage *img);
void eog_image_file_changed (EogImage *img);
+gboolean eog_image_is_file_changed (EogImage *img);
+
G_END_DECLS
#endif /* __EOG_IMAGE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]