Notifications spec: Icons

Olivier Goffart ogoffart at kde.org
Wed Apr 1 14:35:29 PDT 2009


Le Onsdag 1 april 2009, Bo Thorsen a écrit :
[...]
> Answering
> (http://lists.freedesktop.org/archives/xdg/2008-April/009409.html) Aaron,
> Olivier Gouffart writes this about the icons: "icon_data and app_icon are
> different: Take the Kopete online notification: app_icon is the kopete
> icon, while icon_data would be the user's avatar." This answer suggests
> that the application can provide both. But what will the server
> implementations show, then?
>



The Icon is the application icon.  A string is fine because it is almost 
always an icon from the icon theme.

And the notification image depends on the notification and is for exemple the 
contact name.

And because an image is better than many words: a screenshot:
http://pindablog.files.wordpress.com/2009/03/extendergrouping3.png

You can see the two images on the first (kopete) notification


(Note: The part in KDE responsible to show the popup notifications (and only 
popups) is the plasma system tray applet and its extenders.
KNotify is a proxy in between which handle the config and many others sorts of 
presentations.)



The current interface is in
org.kde.VisualNotification   
           Notify(          String  app_name
                      unsigned int  replace_id
                            String  event_id
                            String  app_icon
                            String  summary
                            String  body
                        StringList  actions
                               Map  hints
                               int  timeout      )

Hints contains the image_data  image array

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/xdg/attachments/20090401/2979126c/attachment.pgp 


More information about the xdg mailing list