[gnome-photos] tool-crop: Redraw after initializing the grid



commit f7d07ad171b34b855e619be676383f7a784183f3
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jan 24 19:37:34 2017 +0100

    tool-crop: Redraw after initializing the grid

 src/photos-tool-crop.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-tool-crop.c b/src/photos-tool-crop.c
index e371310..c4877b9 100644
--- a/src/photos-tool-crop.c
+++ b/src/photos-tool-crop.c
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2015 – 2016 Red Hat, Inc.
+ * Copyright © 2015 – 2017 Red Hat, Inc.
  * Copyright © 2015 – 2016 Umang Jain
  * Copyright © 2011 – 2015 Yorba Foundation
  *
@@ -904,6 +904,7 @@ photos_tool_crop_process (GObject *source_object, GAsyncResult *res, gpointer us
   photos_tool_crop_set_active (self, (gint) active);
 
   photos_tool_crop_surface_draw (self);
+  gtk_widget_queue_draw (self->view);
 
   self->size_allocate_id = g_signal_connect_object (self->view,
                                                     "size-allocate",
@@ -973,6 +974,7 @@ photos_tool_crop_activate (PhotosTool *tool, PhotosBaseItem *item, PhotosImageVi
     {
       photos_tool_crop_surface_create (self);
       photos_tool_crop_init_crop (self);
+      gtk_widget_queue_draw (self->view);
 
       self->size_allocate_id = g_signal_connect_object (self->view,
                                                         "size-allocate",


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