[gnome-photos/wip/rishi/thumbnailer: 7/16] base-item: Add photos_base_item_get_orientation
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/thumbnailer: 7/16] base-item: Add photos_base_item_get_orientation
- Date: Mon, 13 Feb 2017 22:41:43 +0000 (UTC)
commit f0a3346727ad4051e5035b2942e6b7bb813f8f15
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Feb 10 23:43:17 2017 +0100
base-item: Add photos_base_item_get_orientation
src/photos-base-item.c | 12 ++++++++++++
src/photos-base-item.h | 2 ++
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 3584957..ce48519 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -3065,6 +3065,18 @@ photos_base_item_get_name_with_fallback (PhotosBaseItem *self)
}
+GQuark
+photos_base_item_get_orientation (PhotosBaseItem *self)
+{
+ PhotosBaseItemPrivate *priv;
+
+ g_return_val_if_fail (PHOTOS_IS_BASE_ITEM (self), 0);
+ priv = photos_base_item_get_instance_private (self);
+
+ return priv->orientation;
+}
+
+
GdkPixbuf *
photos_base_item_get_original_icon (PhotosBaseItem *self)
{
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index 925184e..8b13140 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -142,6 +142,8 @@ const gchar *photos_base_item_get_name (PhotosBaseItem *se
const gchar *photos_base_item_get_name_with_fallback (PhotosBaseItem *self);
+GQuark photos_base_item_get_orientation (PhotosBaseItem *self);
+
GdkPixbuf *photos_base_item_get_original_icon (PhotosBaseItem *self);
const gchar *photos_base_item_get_resource_urn (PhotosBaseItem *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]