[PATCH] Support for title in notifications

Olivier Goffart ogoffart at kde.org
Wed Apr 8 07:39:08 BST 2009

Le Tirsdag 7 april 2009, Aurélien Gâteau a écrit :
> Hi,
> Right now, the notifications implemented by Plasma can display a text
> and an optional title. Unfortunately, it is not possible to define a
> custom title with KNotification (it's possible with kdialog, though,
> because it talks to Plasma directly)
> There is some discussion going on on freedesktop xdg ml about getting
> Galago and KDE notifications to agree on a common spec. Adding support
> for title is imho a necessary step in this direction.

I haven't seen any discussion regarding the title there.

Anyway, the more i think about it, the more i think the patch is not good.

It is not well defined what goes into title, and what goes into message.

Also, i see that this will be a source of confusion. For example, should 
applications repeat or not the title in the message?  I see some application 
using only the title.

But the point is that the title doesn't appears in the log, is not spoken with 
ktts, is not in any other presentation 'plugin'. so if you don't repeat the 
title in the message, you loose information in others presentation (might be 
fixed by adding support for it in each every presentation).

Bref: i think knotify4 should come with a title such as "Notification from 
fooapp" or might even take a title from the .notifyrc file.
But we should not necesserly add that to KNotification just "because the 
galago specification has it"

Unless you come with good uses case. I don't think a dynamic title is required 
in the documentation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090408/71a7de32/attachment.sig>

More information about the kde-core-devel mailing list