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 706253 - timezone map: new location marker
timezone map: new location marker
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Date and Time
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: Zeeshan Ali
Control-Center Maintainers
: 686354 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-08-18 16:44 UTC by Kalev Lember
Modified: 2013-08-24 18:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
datetime: Alignment fixes for the location marker on timezone map (1.12 KB, patch)
2013-08-18 16:47 UTC, Kalev Lember
committed Details | Review
datetime: New location marker image for the timezone map (2.53 KB, patch)
2013-08-18 16:47 UTC, Kalev Lember
committed Details | Review
datetime: Use g_clear_object() (1.25 KB, patch)
2013-08-18 16:47 UTC, Kalev Lember
committed Details | Review
datetime: Load the pin image resource in init(), instead of draw() (2.92 KB, patch)
2013-08-18 16:47 UTC, Kalev Lember
needs-work Details | Review
datetime: Move pixbuf loading out of the draw signal handler (3.15 KB, patch)
2013-08-19 13:56 UTC, Kalev Lember
committed Details | Review

Description Kalev Lember 2013-08-18 16:44:57 UTC
The current location marker is a pin, with a large head and a thin needle. The head draws all visual attention and most people tend to miss the thin needle, mistaking the head as the actual location.

Attaching patches to replace it with a new image by Andreas Nilsson, as discussed in #gnome-design today.
Comment 1 Kalev Lember 2013-08-18 16:47:34 UTC
Created attachment 252137 [details] [review]
datetime: Alignment fixes for the location marker on timezone map

Make sure the marker is drawn pixel-aligned to avoid fuzziness, and
ensure that it actually ends up in the visible area.
Comment 2 Kalev Lember 2013-08-18 16:47:40 UTC
Created attachment 252138 [details] [review]
datetime: New location marker image for the timezone map

The image was drawn by Andreas Nilsson <anilsson@redhat.com>
Comment 3 Kalev Lember 2013-08-18 16:47:47 UTC
Created attachment 252139 [details] [review]
datetime: Use g_clear_object()
Comment 4 Kalev Lember 2013-08-18 16:47:58 UTC
Created attachment 252140 [details] [review]
datetime: Load the pin image resource in init(), instead of draw()
Comment 5 Matthias Clasen 2013-08-19 01:39:28 UTC
Review of attachment 252137 [details] [review]:

sure
Comment 6 Matthias Clasen 2013-08-19 01:39:38 UTC
Review of attachment 252137 [details] [review]:

sure
Comment 7 Matthias Clasen 2013-08-19 01:40:10 UTC
Review of attachment 252138 [details] [review]:

There is no image in this commit ?!
Comment 8 Matthias Clasen 2013-08-19 01:40:36 UTC
Review of attachment 252139 [details] [review]:

sure
Comment 9 Matthias Clasen 2013-08-19 01:42:07 UTC
Review of attachment 252140 [details] [review]:

The subject line is too long, the body of the commit message is too short. Explain why this change is made
Comment 10 Kalev Lember 2013-08-19 13:38:33 UTC
Review of attachment 252138 [details] [review]:

The image is here in the patch, it's just Splinter not showing it for reasons unknown.

diffstat:

 panels/datetime/cc-timezone-map.c |   2 +-
 panels/datetime/data/pin.png      | Bin 561 -> 666 bytes
 2 files changed, 1 insertion(+), 1 deletion(-)
Comment 11 Zeeshan Ali 2013-08-19 13:48:23 UTC
Review of attachment 252138 [details] [review]:

Yeah, splinter does that (at least now a days). :(
Comment 12 Zeeshan Ali 2013-08-19 13:48:34 UTC
Review of attachment 252138 [details] [review]:

Yeah, splinter does that (at least now a days). :(
Comment 13 Zeeshan Ali 2013-08-19 13:48:40 UTC
Review of attachment 252138 [details] [review]:

Yeah, splinter does that (at least now a days). :(
Comment 14 Kalev Lember 2013-08-19 13:56:53 UTC
Created attachment 252230 [details] [review]
datetime: Move pixbuf loading out of the draw signal handler

This moves the timezone location marker image loading code to init()
where most of other resources are loaded, making the draw callback
smaller and easier to read. As a plus, it also avoids needless
allocations during each time the map is drawn.
Comment 15 Rui Matos 2013-08-19 16:19:56 UTC
Review of attachment 252138 [details] [review]:

Yeah, the patch itself looks good
Comment 16 Rui Matos 2013-08-19 16:27:47 UTC
Review of attachment 252230 [details] [review]:

Looks fine
Comment 17 Kalev Lember 2013-08-19 16:43:23 UTC
Thanks for the reviews!

Attachment 252137 [details] pushed as be79efe - datetime: Alignment fixes for the location marker on timezone map
Attachment 252138 [details] pushed as 2dfde24 - datetime: New location marker image for the timezone map
Attachment 252139 [details] pushed as 6255839 - datetime: Use g_clear_object()
Attachment 252230 [details] pushed as fd4df35 - datetime: Move pixbuf loading out of the draw signal handler
Comment 18 Kalev Lember 2013-08-24 18:35:24 UTC
*** Bug 686354 has been marked as a duplicate of this bug. ***