[gnome-photos/wip/rishi/thumbnailer: 6/15] base-item: Add photos_base_item_get_orientation



commit f2972d9e5de4f487ddb1232fae57e9f240044d88
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 4c95d0e..8b063a4 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -3064,6 +3064,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]