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 386113 - show custom alarm message in pop-up alerts
show custom alarm message in pop-up alerts
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.8.x (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
: 705114 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-12-15 06:24 UTC by Ben Liblit
Modified: 2013-10-08 13:42 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
evo patch (1.63 KB, patch)
2013-06-19 14:21 UTC, Milan Crha
rejected Details | Review
evo patch ][ (2.82 KB, patch)
2013-06-19 14:29 UTC, Milan Crha
committed Details | Review
Fix typo in e_cal_backend_file_get_backend_property() (985 bytes, patch)
2013-07-22 14:03 UTC, Fabiano Fidêncio
committed Details | Review
Bug #386113 - show custom alarm message in pop-up alerts (2.61 KB, patch)
2013-07-22 14:03 UTC, Fabiano Fidêncio
committed Details | Review
Bug #386113 - show custom alarm message in pop-up alerts (1.04 KB, patch)
2013-07-22 14:04 UTC, Fabiano Fidêncio
committed Details | Review
Bug #386113 - show custom alarm message in pop-up alerts (951 bytes, patch)
2013-07-22 14:04 UTC, Fabiano Fidêncio
committed Details | Review
Only use the alarm description if the client supports it (2.52 KB, patch)
2013-07-24 09:47 UTC, Fabiano Fidêncio
needs-work Details | Review
Only use the alarm description if the client supports it (3.51 KB, patch)
2013-07-24 11:22 UTC, Fabiano Fidêncio
committed Details | Review

Description Ben Liblit 2006-12-15 06:24:38 UTC
The "Edit Alarm" dialog offers a custom message field.  However, when the alarm action is "Pop up an alert", the custom message is not actually seen in the pop-up alert.  I get two alerts, actually: a brief notification bubble and a more complete dialog box with various controls.  Neither one of these shows the custom message.  This effectively renders the custom message useless.

At least one (and perhaps both) of these pop-up alerts should show the custom message, if such a message is set for the given alarm.
Comment 1 Vadim Rutkovsky 2013-04-04 15:01:41 UTC
Reproduced in evo 3.6 and 3.8
Comment 2 Milan Crha 2013-06-19 14:21:37 UTC
Created attachment 247261 [details] [review]
evo patch

for evolution;

This chooses either alarms description as a notification summary, or components summary (as it used to before the patch), if the alarm description is not available or is empty.
Comment 3 Milan Crha 2013-06-19 14:29:34 UTC
Created attachment 247263 [details] [review]
evo patch ][

for evolution;

Err, this one is better, it doesn't cause (possible) use-after-free.
Comment 4 Milan Crha 2013-06-19 14:34:42 UTC
Created commit 3ecab2f in evo master (3.9.4+)
Created commit 14c5324 in evo gnome-3-8 (3.8.4+)
Comment 5 Milan Crha 2013-07-18 12:37:07 UTC
I'm reopening this. It turned out that some backends (like CalDAV talking to certain servers) may have set a meaningless message on the alarm notification, thus Fidencio will add a check whether the backend supports custom alarm messages or not and will use it in alarm notify.
Comment 6 Fabiano Fidêncio 2013-07-22 14:03:42 UTC
Created attachment 249802 [details] [review]
Fix typo in e_cal_backend_file_get_backend_property()

	test-driver
Comment 7 Fabiano Fidêncio 2013-07-22 14:03:47 UTC
Created attachment 249803 [details] [review]
Bug #386113 - show custom alarm message in pop-up alerts

Enable this feature only for backends we are completely sure it works.
Only enabled for local calendars (file backend) for now.
Comment 8 Fabiano Fidêncio 2013-07-22 14:04:08 UTC
Created attachment 249804 [details] [review]
Bug #386113 - show custom alarm message in pop-up alerts
Comment 9 Fabiano Fidêncio 2013-07-22 14:04:35 UTC
Created attachment 249805 [details] [review]
Bug #386113 - show custom alarm message in pop-up alerts
Comment 10 Fabiano Fidêncio 2013-07-22 14:05:00 UTC
Comment on attachment 249804 [details] [review]
Bug #386113 - show custom alarm message in pop-up alerts

Evolution
Comment 11 Fabiano Fidêncio 2013-07-22 14:05:23 UTC
Comment on attachment 249803 [details] [review]
Bug #386113 - show custom alarm message in pop-up alerts

Evolution Data Server
Comment 12 Fabiano Fidêncio 2013-07-22 14:05:55 UTC
Comment on attachment 249805 [details] [review]
Bug #386113 - show custom alarm message in pop-up alerts

Evolution-EWS
Comment 13 Fabiano Fidêncio 2013-07-22 14:07:16 UTC
Comment on attachment 249802 [details] [review]
Fix typo in e_cal_backend_file_get_backend_property()

There is a typo in the commit message, I'll delete it when I have an ACK to commit.
Comment 14 Milan Crha 2013-07-22 14:15:22 UTC
Review of attachment 249802 [details] [review]:

Good catch, please commit. Thanks.
Comment 15 Milan Crha 2013-07-22 14:16:13 UTC
Review of attachment 249803 [details] [review]:

Looks OK, please commit.
Comment 16 Milan Crha 2013-07-22 14:16:46 UTC
Review of attachment 249804 [details] [review]:

Looks OK, please commit.
Comment 17 Milan Crha 2013-07-22 14:17:11 UTC
Review of attachment 249805 [details] [review]:

And the same here, please commit. Thanks.
Comment 18 Fabiano Fidêncio 2013-07-22 15:14:23 UTC
Created commit b7861eb and d611d25 in e-d-s master (3.9.5+)
Created commit 86d11ac in e-d-s gnome-3-8 (3.8.4+)
Created commit a152ad9 in evo master (3.9.5+)
Created commit fe65256 in evo gnome-3-8 (3.8.4+)
Created commit 76b762d in evo-ews master (3.9.5+)
Created commit 765e6d3 in evo-ews gnome-3-8 (3.8.4+)
Comment 19 Milan Crha 2013-07-24 06:23:23 UTC
(In reply to comment #10)
> (From update of attachment 249804 [details] [review])
> Evolution

We forgot one change here, the alarm_queue_get_alarm_summary() should also check for the capability of the client, thus it'll use the alarm description only if the client supports it.
Comment 20 Fabiano Fidêncio 2013-07-24 09:47:24 UTC
Created attachment 250008 [details] [review]
Only use the alarm description if the client supports it
Comment 21 Milan Crha 2013-07-24 10:59:50 UTC
Review of attachment 250008 [details] [review]:

Untested, but the alarm_queue_get_alarm_summary() is responsible to provide alarm description, wherever it finds it. Not calling the function means no description at all => needs-work.
Comment 22 Fabiano Fidêncio 2013-07-24 11:22:10 UTC
Created attachment 250025 [details] [review]
Only use the alarm description if the client supports it
Comment 23 Milan Crha 2013-07-24 13:12:05 UTC
Review of attachment 250025 [details] [review]:

Right, this is better. I would not add the local variables for ECalClient, but that's just my way of work, not a rule :) Please add the additional change from below and commit to master and gnome-3-8. Thanks.

::: calendar/alarm-notify/alarm-queue.c
@@ +1620,2 @@
 		}
 	}

to be 100% sure make the preceding line:
      } else {
             *palarm = NULL;
      }
Comment 24 Fabiano Fidêncio 2013-07-24 13:49:31 UTC
Created commit 0ee86ee in evo master (3.9.5+)
Created commit fea1a50 in evo gnome-3-8 (3.8.5+)
Comment 25 Milan Crha 2013-07-31 09:05:58 UTC
*** Bug 705114 has been marked as a duplicate of this bug. ***
Comment 26 Milan Crha 2013-10-08 13:42:16 UTC
One more follow-up commit for this bug report.  It turned out that my understanding of the RFC when fixing this bug report was incorrect, the alarm description is not supposed to replace the component summary, but only extend it with an additional text. Thus let's show both component summary and alarm description in Reminders.

Created commit c3c9ba6 in evo master (3.11.1+)
Created commit 7cf439f in evo gnome-3-10 (3.10.1+)