[gnome-photos/wip/rishi/double-buffering: 5/12] image-view: Rearrange the code for subsequent changes



commit eea644a1c545bc50aba70a31543fe15a0d9da0a3
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jan 17 09:31:55 2017 +0100

    image-view: Rearrange the code for subsequent changes

 src/photos-image-view.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index 13f5e1c..794b848 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -426,11 +426,10 @@ photos_image_view_set_node (PhotosImageView *self, GeglNode *node)
 
   if (node != NULL)
     {
-      g_object_ref (node);
+      self->node = g_object_ref (node);
       g_signal_connect_object (node, "computed", G_CALLBACK (photos_image_view_computed), self, 
G_CONNECT_SWAPPED);
     }
 
-  self->node = node;
   photos_image_view_update (self);
   gtk_widget_queue_draw (GTK_WIDGET (self));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]