[gnome-photos/wip/abono/sidebar: 8/11] preview-view: Hook up properties sidebar
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/abono/sidebar: 8/11] preview-view: Hook up properties sidebar
- Date: Tue, 6 Dec 2016 12:20:06 +0000 (UTC)
commit 19f9f3be81fa6f5c56b9076c4581e2017e82e615
Author: Alessandro Bono <abono gnome org>
Date: Tue Oct 18 23:47:22 2016 +0200
preview-view: Hook up properties sidebar
src/photos-preview-view.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index 6138c64..97e8781 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -38,6 +38,7 @@
#include "photos-operation-insta-common.h"
#include "photos-preview-nav-buttons.h"
#include "photos-preview-view.h"
+#include "photos-properties-sidebar.h"
#include "photos-search-context.h"
#include "photos-tool.h"
@@ -49,7 +50,9 @@ struct _PhotosPreviewView
GCancellable *cancellable;
GeglNode *node;
GtkWidget *palette;
+ GtkWidget *properties;
GtkWidget *edit_revealer;
+ GtkWidget *properties_revealer;
GtkWidget *stack;
PhotosBaseManager *item_mngr;
PhotosModeController *mode_cntrlr;
@@ -691,6 +694,13 @@ photos_preview_view_init (PhotosPreviewView *self)
gtk_revealer_set_transition_type (GTK_REVEALER (self->edit_revealer),
GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT);
gtk_container_add (GTK_CONTAINER (grid), self->edit_revealer);
+ self->properties_revealer = gtk_revealer_new ();
+ gtk_revealer_set_transition_type (GTK_REVEALER (self->properties_revealer),
GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT);
+ gtk_container_add (GTK_CONTAINER (grid), self->properties_revealer);
+
+ self->properties = photos_properties_sidebar_new ();
+ gtk_container_add (GTK_CONTAINER (self->properties_revealer), self->properties);
+
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]