[gnome-photos/wip/rishi/imageview2: 1/6] image-view, preview-view: Shuffle some code around
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/imageview2: 1/6] image-view, preview-view: Shuffle some code around
- Date: Mon, 16 Jan 2017 11:02:37 +0000 (UTC)
commit 3827a4d8e72cd2132c1f3b85ebf8f0cb12e431a2
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Feb 2 10:34:00 2016 +0100
image-view, preview-view: Shuffle some code around
PhotosImageView should always queue a draw when a GeglNode is set. I
don't see a reason for it to be the caller's responsibility to do so.
src/photos-image-view.c | 1 +
src/photos-preview-view.c | 1 -
2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index f72bf15..fdff929 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -441,4 +441,5 @@ photos_image_view_set_node (PhotosImageView *self, GeglNode *node)
self->node = node;
photos_image_view_update (self);
+ gtk_widget_queue_draw (GTK_WIDGET (self));
}
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index 5cc1364..5abfd89 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -787,6 +787,5 @@ photos_preview_view_set_node (PhotosPreviewView *self, GeglNode *node)
self->node = g_object_ref (node);
view = photos_preview_view_get_view_from_view_container (view_container);
photos_image_view_set_node (PHOTOS_IMAGE_VIEW (view), self->node);
- gtk_widget_queue_draw (view);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]