← Back to team overview

dx-packages team mailing list archive

[Bug 410828] [NEW] OK and CANCEL buttons in fallback alert are ambiguous

 

You have been subscribed to a public bug:

I use the freedesktop.org DBus notification interface to submit
notifications to Notify OSD.

When submitting a notification with a timeout of zero or with custom actions, a fallback alert appears.
This alert has an OK and a CANCEL button.

To me it is unclear why there are 2 buttons, respectively what's their difference. To understand this, I listened for the DBus signal org.freedesktop.Notifications.NotificationClosed. This signal's 'reason' parameter
gives the following values
- press OK button: 3
- press CANCEL button: 2
- close alert window: 2

The freedesktop notification spec describes the values as follows:
2 - The notification was dismissed by the user.
3 - The notification was closed by a call to CloseNotification.

A reason value of 2 for CANCEL and "close alert window" seems to be
appropriate. In contrast, OK and "The notification was closed by a call
to CloseNotification" are not equivalent. With regard to other
notification systems, I would not generally expect to have a positive
action assigned to the reason value 3. But maybe this is a problem in
the freedesktop notification spec.

To be clear about user actions, I tried to add custom actions, but the
problem is, that the OK and CANCEL buttons are still shown, additionally
to the custom action buttons. Custom actions are a good thing to put
some more information into actions (not only positive/OK or
negative/CANCEL). However, this does not make sense if the OK and CANCEL
buttons are still visible.

To summarize, I would prefer to merge the OK and CANCEL buttons to a single button (e.g. OK or DISMISS) and/or
to show _no_ standard buttons when custom action are used.

Thanks for your time and kind regards,
Oben

** Affects: notify-osd (Ubuntu)
     Importance: Wishlist
     Assignee: Mirco Müller (macslow)
         Status: Won't Fix

-- 
OK and CANCEL buttons in fallback alert are ambiguous
https://bugs.launchpad.net/bugs/410828
You received this bug notification because you are a member of DX Packages, which is subscribed to notify-osd in Ubuntu.