[gnome-photos] base-item: Add photos_base_item_get_orientation



commit 75f8609eba15d8a7f4f7f60ec6389fe571ee3099
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]