[gnome-photos/wip/abono/sidebar: 14/14] WIP set_item



commit cc402514de486471c0573a70257adbf9e9c97357
Author: Alessandro Bono <abono gnome org>
Date:   Sat Nov 12 12:32:20 2016 +0100

    WIP set_item

 src/photos-embed.c        |    1 +
 src/photos-preview-view.c |    6 ++++++
 src/photos-preview-view.h |    2 ++
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-embed.c b/src/photos-embed.c
index 59b7c14..4510e2f 100644
--- a/src/photos-embed.c
+++ b/src/photos-embed.c
@@ -311,6 +311,7 @@ photos_embed_load_finished (PhotosEmbed *self, PhotosBaseItem *item, GeglNode *n
   if (node == NULL)
     return;
 
+  photos_preview_view_set_item (PHOTOS_PREVIEW_VIEW (self->preview), item);
   photos_preview_view_set_node (PHOTOS_PREVIEW_VIEW (self->preview), node);
 
   /* TODO: set toolbar model */
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index ec12e8a..8750ba5 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -775,6 +775,12 @@ photos_preview_view_new (void)
   return g_object_new (PHOTOS_TYPE_PREVIEW_VIEW, NULL);
 }
 
+void
+photos_preview_view_set_item (PhotosPreviewView *self, PhotosBaseItem *item)
+{
+  photos_properties_sidebar_set_item (PHOTOS_PROPERTIES_SIDEBAR (self->properties), item);
+}
+
 
 void
 photos_preview_view_set_model (PhotosPreviewView *self, GtkTreeModel *model, GtkTreePath *current_path)
diff --git a/src/photos-preview-view.h b/src/photos-preview-view.h
index 7066d20..4867bcd 100644
--- a/src/photos-preview-view.h
+++ b/src/photos-preview-view.h
@@ -47,6 +47,8 @@ GType                  photos_preview_view_get_type               (void) G_GNUC_
 
 GtkWidget             *photos_preview_view_new                    (void);
 
+void                   photos_preview_view_set_item               (PhotosPreviewView *self, PhotosBaseItem 
*item);
+
 void                   photos_preview_view_set_model              (PhotosPreviewView *self,
                                                                    GtkTreeModel *model,
                                                                    GtkTreePath *current_path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]