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 707191 - datetime: Display notifications on timezone changes
datetime: Display notifications on timezone changes
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: general
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks: 707252
 
 
Reported: 2013-08-31 18:01 UTC by Kalev Lember
Modified: 2013-09-02 20:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
datetime: Display notifications on timezone changes (9.73 KB, patch)
2013-08-31 18:02 UTC, Kalev Lember
reviewed Details | Review
datetime: Display notifications on timezone changes (10.30 KB, patch)
2013-09-01 21:31 UTC, Kalev Lember
committed Details | Review

Description Kalev Lember 2013-08-31 18:01:41 UTC
According to the mockups, we should be displaying notifications when the timezone gets automatically updated:
https://wiki.gnome.org/Design/SystemSettings/DateAndTime#Guidelines
Comment 1 Kalev Lember 2013-08-31 18:02:47 UTC
Created attachment 253708 [details] [review]
datetime: Display notifications on timezone changes
Comment 3 Matthias Clasen 2013-09-01 19:20:53 UTC
Review of attachment 253708 [details] [review]:

::: plugins/datetime/gsd-datetime-manager.c
@@ +102,3 @@
+        /* Translators: UTC here means the Coordinated Universal Time.
+         * %:::z will be replaced by the offset from UTC e.g. UTC+02 */
+        utc_offset = g_date_time_format (datetime, _("UTC%:::z"));

So, this depends on the latest glib.

@@ +131,3 @@
+
+        control_center = g_find_program_in_path ("gnome-control-center");
+        if (control_center != NULL && notification_server_has_actions ()) {

Do you really need to check for the server capabilities here ? won't the actions just be ignored if not supported ?

@@ +141,3 @@
+
+        if (!notify_notification_show (self->priv->notification, NULL)) {
+                g_warning ("failed to send disk space notification\n");

copy-paste error
Comment 4 Kalev Lember 2013-09-01 20:53:41 UTC
(In reply to comment #3)
> +        control_center = g_find_program_in_path ("gnome-control-center");
> +        if (control_center != NULL && notification_server_has_actions ()) {
> 
> Do you really need to check for the server capabilities here ? won't the
> actions just be ignored if not supported ?

Not sure, the spec is pretty loosely worded -- I'd be happy to drop the check if you think it's unnecessary and see if anyone complains. I've looked at the g-s-d housekeeping plugin and rhythmbox and both had checks for server capabilities though.

---
Actions	

The actions send a request message back to the notification client when invoked. This functionality may not be implemented by the notification server, conforming clients should check if it is available before using it (see the GetCapabilities message in Protocol). An implementation is free to ignore any requested by the client. As an example one possible rendering of actions would be as buttons in the notification popup.
---

https://developer.gnome.org/notification-spec/
Comment 5 Kalev Lember 2013-09-01 21:31:54 UTC
Created attachment 253782 [details] [review]
datetime: Display notifications on timezone changes

Also, bump glib dependency to 2.37.7 for new %z format modifiers.
Comment 6 Kalev Lember 2013-09-02 20:01:57 UTC
Attachment 253782 [details] pushed as 37ea000 - datetime: Display notifications on timezone changes