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 758650 - Use notification actions only when supported
Use notification actions only when supported
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
3.18.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2015-11-25 11:48 UTC by Sebastien Bacher
Modified: 2015-11-25 15:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
untested patch to fix the issue (1.53 KB, patch)
2015-11-25 14:15 UTC, Sebastien Bacher
committed Details | Review
screenshot of the notify-osd dialog (18.13 KB, image/png)
2015-11-25 15:07 UTC, Sebastien Bacher
  Details

Description Sebastien Bacher 2015-11-25 11:48:18 UTC
Using evolution 3.18, the calendar reminder notifications have actions or some notification server don't handle those which leads to issues (notify-osd under Unity is one example). Ideally the code would check the server capability (notify_get_server_caps()) and only add actions if those are handled
Comment 1 Sebastien Bacher 2015-11-25 11:51:43 UTC
Seems like the action was added in that commit https://git.gnome.org/browse/evolution/commit/?id=c0373e7fecc4690058a91570405bd933e789d78e
Comment 2 Sebastien Bacher 2015-11-25 14:15:36 UTC
Created attachment 316242 [details] [review]
untested patch to fix the issue

the mail-notification plugin already has code for that, that change should do the trick, I've not tested it yet but I'm going to give it a try now
Comment 3 Milan Crha 2015-11-25 14:49:53 UTC
Review of attachment 316242 [details] [review]:

Thanks for a bug report and patch. I'll commit it, but I'm also interested to know what kind of issue the added action causes. I would expect that the libnotify will simply ignore the added action when it's not supported.
Comment 4 Milan Crha 2015-11-25 14:56:08 UTC
Created commit c495f5b in evo master (3.19.3+)
Created commit 0ca2de1 in evo gnome-3-18 (3.18.3+)
Comment 5 Sebastien Bacher 2015-11-25 15:07:20 UTC
Created attachment 316250 [details]
screenshot of the notify-osd dialog

Notify-osd doesn't simply ignore actions because it could lead to buggy situations, for example the notification could state "click on the button to go to the agenda" for example which would misleading if there is no button. Instead it displays those "fallback dialogs" (it looks somewhat buggy but our design team never wanted to make them better because they would then used a first class elements which they are not)