KNotificationItem: default menu entries unwanted

Aaron J. Seigo aseigo at kde.org
Tue May 19 11:14:39 BST 2009


On Thursday 14 May 2009, Allen Winter wrote:
> On Thursday 14 May 2009 7:51:34 am Sebastian TrĂ¼g wrote:
> > Since the Nepomuk systray icon was ported to KNotificationItem it always
> > shows the "quit" action which is really not wanted in this case. It
> > represents a service that is not really supposed to be quit through the
> > icon. Thus, my question: could we add a method like
> > "addDefaultActions(bool)" to KNotificationItem which prevents the
> > aboutToShow method to add the quit and restore actions?
>
> We also need a hide/show capability.

ah, forgot to reply to this bit: setStatus(KNotificationItem::Passive);

otherwise you can delete the icon and recreate it, but setting it to Passive 
allows the visualization to decide what to do.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090519/fbbef145/attachment.sig>


More information about the kde-core-devel mailing list