After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788042 - Edits are not applied when setting a background
Edits are not applied when setting a background
Status: RESOLVED FIXED
Product: gnome-photos
Classification: Applications
Component: general
3.26.x
Other All
: Normal normal
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-09-22 10:29 UTC by Jakub Steiner
Modified: 2017-10-03 17:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
base-item: Rename save_async as save_to_dir_async (10.27 KB, patch)
2017-09-22 16:14 UTC, Debarshi Ray
committed Details | Review
base-item: Add photos_base_item_save_to_file_async (9.58 KB, patch)
2017-09-22 16:14 UTC, Debarshi Ray
none Details | Review
application: Process the item's pipeline when setting the background (6.71 KB, patch)
2017-09-22 16:14 UTC, Debarshi Ray
committed Details | Review
base-item: Add photos_base_item_save_to_file_async (9.57 KB, patch)
2017-09-25 12:46 UTC, Debarshi Ray
committed Details | Review

Description Jakub Steiner 2017-09-22 10:29:17 UTC
When you set the current photo as a wallpaper or lock screen background, the version used is the unedited one, not what you're seeing.
Comment 1 Debarshi Ray 2017-09-22 10:32:54 UTC
Yeah, sorry about that. I hit this bug myself a few weeks back.
Comment 2 Debarshi Ray 2017-09-22 16:14:19 UTC
Created attachment 360271 [details] [review]
base-item: Rename save_async as save_to_dir_async
Comment 3 Debarshi Ray 2017-09-22 16:14:30 UTC
Created attachment 360272 [details] [review]
base-item: Add photos_base_item_save_to_file_async
Comment 4 Debarshi Ray 2017-09-22 16:14:44 UTC
Created attachment 360273 [details] [review]
application: Process the item's pipeline when setting the background
Comment 5 Umang Jain 2017-09-24 13:48:35 UTC
Review of attachment 360271 [details] [review]:

++
Comment 6 Debarshi Ray 2017-09-24 16:26:21 UTC
Comment on attachment 360271 [details] [review]
base-item: Rename save_async as save_to_dir_async

Thanks for the review!
Comment 7 Umang Jain 2017-09-24 19:56:54 UTC
Review of attachment 360272 [details] [review]:

++
Other than few doubts (I have), I didn't spot any caveats.

::: src/photos-base-item.c
@@ +2275,3 @@
+  GFile *file = G_FILE (source_object);
+  GFileOutputStream *stream = NULL;
+  PhotosBaseItemSaveToFileData *data;

Nitpick: Is the ordering (alphabetical) order correct?

@@ +2311,3 @@
+  GeglBuffer *buffer_zoomed = NULL;
+  PhotosBaseItemSaveToFileData *data;
+

Ditto.

@@ +2351,3 @@
+  GeglNode *graph = NULL;
+  PhotosBaseItemSaveToFileData *data;
+

Ditto.
Comment 8 Umang Jain 2017-09-24 20:20:10 UTC
Review of attachment 360273 [details] [review]:

++
Comment 9 Debarshi Ray 2017-09-25 12:32:48 UTC
(In reply to Umang Jain from comment #7)
> Review of attachment 360272 [details] [review] [review]:
> Other than few doubts (I have), I didn't spot any caveats.
> 
> ::: src/photos-base-item.c
> @@ +2275,3 @@
> +  GFile *file = G_FILE (source_object);
> +  GFileOutputStream *stream = NULL;
> +  PhotosBaseItemSaveToFileData *data;
> 
> Nitpick: Is the ordering (alphabetical) order correct?
> 
> @@ +2311,3 @@
> +  GeglBuffer *buffer_zoomed = NULL;
> +  PhotosBaseItemSaveToFileData *data;
> +
> 
> Ditto.

You are right. The GTask needs to be moved below.

> @@ +2351,3 @@
> +  GeglNode *graph = NULL;
> +  PhotosBaseItemSaveToFileData *data;
> +
> 
> Ditto.

We usually put the self/priv at the top followed, by G*, Gegl*, Gtk*, etc.. So, this one looks fine, no?
Comment 10 Debarshi Ray 2017-09-25 12:46:53 UTC
Created attachment 360349 [details] [review]
base-item: Add photos_base_item_save_to_file_async
Comment 11 Debarshi Ray 2017-09-25 12:48:22 UTC
Comment on attachment 360349 [details] [review]
base-item: Add photos_base_item_save_to_file_async

I hope I got it right this time. I'm pushing this because I am about to disappear for a few days of vacation.
Comment 12 Debarshi Ray 2017-09-25 12:53:01 UTC
Pushed to master, gnome-3-26 and gnome-3-24.
Comment 13 Debarshi Ray 2017-09-25 12:53:13 UTC
Thanks for the reviews!