[gnome-photos/wip/rishi/double-buffering: 9/12] preview-view: No need to explicitly queue a redraw after processing



commit fb22f45f14590d4f71c0b9761688e0ce4d507d27
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jan 17 10:52:35 2017 +0100

    preview-view: No need to explicitly queue a redraw after processing
    
    PhotosImageView will automatically queue a redraw once the GeglNode's
    entire bounding box has been computed. There is no need to queue it
    once more.

 src/photos-preview-view.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index b2d2d64..767ed76 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -271,7 +271,6 @@ photos_preview_view_get_view_from_view_container (GtkWidget *view_container)
 static void
 photos_preview_view_process (GObject *source_object, GAsyncResult *res, gpointer user_data)
 {
-  PhotosPreviewView *self;
   GError *error = NULL;
   PhotosBaseItem *item = PHOTOS_BASE_ITEM (source_object);
 
@@ -289,10 +288,6 @@ photos_preview_view_process (GObject *source_object, GAsyncResult *res, gpointer
           g_error_free (error);
         }
     }
-
-  self = PHOTOS_PREVIEW_VIEW (user_data);
-
-  g_action_activate (self->draw, NULL);
 }
 
 


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