[gnome-photos/wip/abono/sidebar: 2/11] preview-view: Add a new overlay
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/abono/sidebar: 2/11] preview-view: Add a new overlay
- Date: Tue, 6 Dec 2016 12:19:36 +0000 (UTC)
commit 3a989930a62c89c7ac2bfbe5fca3b82481abf2be
Author: Alessandro Bono <abono gnome org>
Date: Thu Sep 15 23:40:49 2016 +0200
preview-view: Add a new overlay
https://bugzilla.gnome.org/show_bug.cgi?id=771704
src/photos-preview-view.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index 459f2ca..ceafd35 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -684,6 +684,7 @@ photos_preview_view_init (PhotosPreviewView *self)
GAction *action;
GApplication *app;
GtkWidget *grid;
+ GtkWidget *overlay;
GtkWidget *sw;
GtkWidget *view_container;
PhotosSearchContextState *state;
@@ -707,10 +708,13 @@ photos_preview_view_init (PhotosPreviewView *self)
grid = gtk_grid_new ();
gtk_container_add (GTK_CONTAINER (self), grid);
+ overlay = gtk_overlay_new ();
+ gtk_container_add (GTK_CONTAINER (grid), overlay);
+
self->stack = gtk_stack_new ();
gtk_widget_set_hexpand (self->stack, TRUE);
gtk_widget_set_vexpand (self->stack, TRUE);
- gtk_container_add (GTK_CONTAINER (grid), self->stack);
+ gtk_container_add (GTK_CONTAINER (overlay), self->stack);
view_container = photos_preview_view_create_view_with_container (self);
gtk_container_add (GTK_CONTAINER (self->stack), view_container);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]