[gnome-photos/wip/abono/sidebar: 11/14] preview-view: Hook up properties sidebar



commit f57b7d289cf9cb8ebf044086f968e26f9f22072f
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 ff73199..c863f51 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;
@@ -687,6 +690,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 (self), 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 (self), 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]