[gnome-photos/wip/abono/sidebar: 630/635] preview-view: Set visible item to the sidebar
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/abono/sidebar: 630/635] preview-view: Set visible item to the sidebar
- Date: Thu, 2 Nov 2017 15:46:15 +0000 (UTC)
commit 896739441b36826177392763256cfe0d9e252312
Author: Alessandro Bono <abono gnome org>
Date: Sat Nov 12 12:32:20 2016 +0100
preview-view: Set visible item to the sidebar
src/photos-embed.c | 1 +
src/photos-preview-view.c | 6 ++++++
src/photos-preview-view.h | 3 +++
3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-embed.c b/src/photos-embed.c
index 5923da9..3119c4b 100644
--- a/src/photos-embed.c
+++ b/src/photos-embed.c
@@ -314,6 +314,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 40a2039..84c7d6e 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -1400,6 +1400,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_mode (PhotosPreviewView *self, PhotosWindowMode old_mode)
diff --git a/src/photos-preview-view.h b/src/photos-preview-view.h
index e5887c0..9d86c10 100644
--- a/src/photos-preview-view.h
+++ b/src/photos-preview-view.h
@@ -28,6 +28,7 @@
#include <gegl.h>
#include <gtk/gtk.h>
+#include "photos-base-item.h"
#include "photos-item-manager.h"
G_BEGIN_DECLS
@@ -40,6 +41,8 @@ GtkWidget *photos_preview_view_new (void);
void photos_preview_view_set_mode (PhotosPreviewView *self,
PhotosWindowMode old_mode);
+void photos_preview_view_set_item (PhotosPreviewView *self, PhotosBaseItem
*item);
+
void photos_preview_view_set_node (PhotosPreviewView *self, GeglNode *node);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]