[gnome-photos] preview-view: Add a comment



commit 31e45a230dd24e3b22cd4427dd4d54082f8284b6
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Jan 30 17:56:21 2017 +0100

    preview-view: Add a comment

 src/photos-preview-view.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index ecefcbe..643a94a 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -544,6 +544,11 @@ photos_preview_view_edit_done (PhotosPreviewView *self)
   item = PHOTOS_BASE_ITEM (photos_base_manager_get_active_object (self->item_mngr));
   g_return_if_fail (item != NULL);
 
+  /* We need to withdraw the palette's row before saving the pipeline so
+   * that we don't miss the application of the current tool. Some
+   * tools (eg., crop) use their deactivated virtual method to apply
+   * themselves, and that happens when the row gets hidden.
+   */
   photos_edit_palette_hide_details (PHOTOS_EDIT_PALETTE (self->palette));
 
   app = g_application_get_default ();


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