eog r4901 - in trunk: . src
- From: csaavedra svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4901 - in trunk: . src
- Date: Mon, 8 Dec 2008 14:18:30 +0000 (UTC)
Author: csaavedra
Date: Mon Dec 8 14:18:30 2008
New Revision: 4901
URL: http://svn.gnome.org/viewvc/eog?rev=4901&view=rev
Log:
2008-10-08 Claudio Saavedra <csaavedra igalia com>
* src/eog-image.c (+eog_image_metadata_get_status): New public
method to retrieve metadata status.
* src/eog-image.h: Add definition.
Modified:
trunk/ChangeLog
trunk/src/eog-image.c
trunk/src/eog-image.h
Modified: trunk/src/eog-image.c
==============================================================================
--- trunk/src/eog-image.c (original)
+++ trunk/src/eog-image.c Mon Dec 8 14:18:30 2008
@@ -1874,6 +1874,23 @@
return img->priv->status;
}
+/**
+ * eog_image_get_metadata_status:
+ * @img: a #EogImage
+ *
+ * Returns the current status of the image metadata, that is,
+ * whether the metadata has not been read yet, is ready, or not available at all.
+ *
+ * Returns: one of #EogImageMetadataStatus
+ **/
+EogImageMetadataStatus
+eog_image_get_metadata_status (EogImage *img)
+{
+ g_return_val_if_fail (EOG_IS_IMAGE (img), EOG_IMAGE_METADATA_NOT_AVAILABLE);
+
+ return img->priv->metadata_status;
+}
+
void
eog_image_data_ref (EogImage *img)
{
Modified: trunk/src/eog-image.h
==============================================================================
--- trunk/src/eog-image.h (original)
+++ trunk/src/eog-image.h Mon Dec 8 14:18:30 2008
@@ -169,6 +169,8 @@
EogImageStatus eog_image_get_status (EogImage *img);
+EogImageMetadataStatus eog_image_get_metadata_status (EogImage *img);
+
void eog_image_transform (EogImage *img,
EogTransform *trans,
EogJob *job);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]