[gnome-photos/wip/abono/sidebar: 621/635] 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: 621/635] preview-view: Add a new overlay
- Date: Thu, 2 Nov 2017 15:45:30 +0000 (UTC)
commit f24aed19a02f9abb5a67f8038fcad9dae0b02fab
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 f753b22..20e1ba1 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -1251,6 +1251,7 @@ photos_preview_view_init (PhotosPreviewView *self)
GAction *action;
GApplication *app;
GtkWidget *grid;
+ GtkWidget *overlay;
GtkWidget *sw;
GtkWidget *view_container;
PhotosSearchContextState *state;
@@ -1274,10 +1275,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]