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 761533 - Place Icons in favorite-popover are always lost.
Place Icons in favorite-popover are always lost.
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2016-02-04 07:06 UTC by Alaf
Modified: 2016-02-09 13:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Place Icons in favorite-popover are always lost (3.41 KB, patch)
2016-02-04 15:25 UTC, Alaf
none Details | Review
Place Icons in favorite-popover are always lost (3.52 KB, patch)
2016-02-04 16:56 UTC, Alaf
none Details | Review
Place Icons in favorite-popover are always lost (3.50 KB, patch)
2016-02-05 05:16 UTC, Alaf
rejected Details | Review
Place: Fix storing of place_type (870 bytes, patch)
2016-02-05 06:59 UTC, Jonas Danielsson
committed Details | Review
Icons of favorite places are always lost (4.33 KB, patch)
2016-02-05 07:09 UTC, Alaf
none Details | Review

Description Alaf 2016-02-04 07:06:35 UTC
If we favorite a place with an icon, its icon does not show next time maps starts.
Also placestore file, [maps-places.json] contain no Icon field.
Comment 1 Alaf 2016-02-04 15:25:20 UTC
Created attachment 320443 [details] [review]
Place Icons in favorite-popover are always lost

Favorite-popover always display default Icons as icons are not present
in maps-places.json. Now we save place icon names.
Comment 2 Alaf 2016-02-04 16:56:22 UTC
Created attachment 320457 [details] [review]
Place Icons in favorite-popover are always lost

Favorite-popover always display default Icons as icons are not present
in maps-places.json. Now we save place icon names.
Comment 3 Marcus Lundblad 2016-02-04 21:17:43 UTC
Review of attachment 320457 [details] [review]:

Looks good otherwise, I think!

::: src/placeListRow.js
@@ +66,3 @@
+        } else {
+            this._icon.gicon = this.place.icon;
+        }

Minor nitpick, I think the braces can be skipped here, especially since both parts are single statements.
Comment 4 Alaf 2016-02-05 05:16:17 UTC
Created attachment 320478 [details] [review]
Place Icons in favorite-popover are always lost

Favorite-popover always display default icons as icons are not present
in maps-places.json. Now we save place icon names.
Comment 5 Jonas Danielsson 2016-02-05 06:59:11 UTC
Created attachment 320479 [details] [review]
Place: Fix storing of place_type

Place: Fix storing of place_type

The icon for a place is constructed in geocode-glib from
the place place_type. It seems we forget to store it in our
place store.

https://bugzilla.gnome.org/show_bug.cgi?id=761533
Comment 6 Jonas Danielsson 2016-02-05 06:59:39 UTC
Alaf: Does the patch above solve the issue for you?
Comment 7 Jonas Danielsson 2016-02-05 07:00:42 UTC
Review of attachment 320478 [details] [review]:

Thanks!

The icon should be constructed from the place place_type and should be done for us in geocode-glib. The bug is why this is not happening I think.
Comment 8 Alaf 2016-02-05 07:09:30 UTC
Created attachment 320480 [details] [review]
Icons of favorite places are always lost

As Icons are not saved in maps.places-json, favorite places always display
dafault icons. Now we save place icon names
Comment 9 Alaf 2016-02-05 07:16:10 UTC
Jonas : Yes :)
Comment 10 Jonas Danielsson 2016-02-09 13:42:34 UTC
Comment on attachment 320479 [details] [review]
Place: Fix storing of place_type

Attachment 320479 [details] pushed as e2e3e9c - Place: Fix storing of place_type