[gnome-photos/wip/rishi/imageview: 2/4] image-view, preview-view: Shuffle some code around



commit 56c087060378b63c0314d1eb60ed6362fbd29329
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 d4bf851..dd6e43a 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -717,6 +717,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]