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 653112 - Handling "default" action
Handling "default" action
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks: 653699
 
 
Reported: 2011-06-21 16:25 UTC by Marina Zhurakhinskaya
Modified: 2013-06-14 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Evolution notification with "Default" action (39.84 KB, image/png)
2011-06-21 16:25 UTC, Marina Zhurakhinskaya
Details

Description Marina Zhurakhinskaya 2011-06-21 16:25:20 UTC
Created attachment 190377 [details]
Evolution notification with "Default" action

Here is what the notification spec says about an action with the key "default":

"The default action (usually invoked by clicking the notification) should have a key named "default". The name can be anything, though implementations are free not to display it."

Currently, we treat an action called "default" as we treat any other action -
we add an action button for it and don't use it to inform us on what to do when the notification is clicked. For example, this happens for Evolution mail notifications, for which we display an action button that says "Default", which looks pretty silly.

We should either

a) Use the "default" action to inform us on what should happen when a notification is clicked and not display it. The concern there is that we'd like clicking the notification to switch to the application that sent it, and using the "default" action might introduce an inconsistency.

b) Remove the provision for the "default" action from the spec and ask applications that use this action to remove it or be sure to use a meaningful string for it (something other than "Default").
Comment 1 Matthias Clasen 2011-07-06 12:49:17 UTC
Might be interesting to do some survey of what applications actually have default actions, and what kind of actions those are.
Comment 2 Florian Müllner 2013-06-14 16:48:06 UTC
This was fixed at some point, we do handle default actions nowadays.