[gnome-photos/wip/rishi/zoom: 2/5] preview-view: Assert that the invisible view doesn't have a GeglNode
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/zoom: 2/5] preview-view: Assert that the invisible view doesn't have a GeglNode
- Date: Mon, 15 May 2017 18:21:01 +0000 (UTC)
commit e2389d5d575b55e6a84050205de8730335370be9
Author: Debarshi Ray <debarshir gnome org>
Date: Mon May 15 20:08:10 2017 +0200
preview-view: Assert that the invisible view doesn't have a GeglNode
src/photos-preview-view.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index 4ca120b..220efb2 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -211,14 +211,20 @@ photos_preview_view_motion_notify_event (PhotosPreviewView *self, GdkEvent *even
static void
photos_preview_view_navigate (PhotosPreviewView *self, gint position)
{
+ GeglNode *node;
GtkWidget *current_view_container;
GtkWidget *new_view_container;
+ GtkWidget *next_view;
GtkWidget *next_view_container;
+ next_view_container = photos_preview_view_get_invisible_child (self);
+ next_view = photos_preview_view_get_view_from_view_container (next_view_container);
+ node = photos_image_view_get_node (PHOTOS_IMAGE_VIEW (next_view));
+ g_return_if_fail (node == NULL);
+
current_view_container = gtk_stack_get_visible_child (GTK_STACK (self->stack));
gtk_container_child_set (GTK_CONTAINER (self->stack), current_view_container, "position", position, NULL);
- next_view_container = photos_preview_view_get_invisible_child (self);
gtk_stack_set_visible_child (GTK_STACK (self->stack), next_view_container);
gtk_container_remove (GTK_CONTAINER (self->stack), current_view_container);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]