playground/base/plasma/applets

Sebastian Kügler sebas at kde.org
Wed Aug 27 19:29:23 CEST 2008


On Wednesday 27 August 2008 19:13:10 Aaron J. Seigo wrote:
> On Wednesday 27 August 2008, Sebastian Kügler wrote:
> >    Can someone help me out and have a look why the signal is never
> >    received (and keep me from banging my head against a wall)?
>
> the applets are created in MID::Protocol::Protocol (the constructor), but
> the signal connection doesn't happen until after that (in
> Manager::registerProtocol)

Ah. The 'real' systray icons are delayed in their initialisation, that's why 
it works for them ...

> i've fixed this by addign a Protocol::init() pure virtual so that the
> applet can call init() whenever it makes sense (e.g. once all the
> connections are made ...)

Right. I was assuming that it was the other way round.

> btw, i think this would be generally useful as a feature, not just for MID.
> would you be cool with renaming it to *thinks* Plasmoid?

Agreed, I'll change the names.

Thanks for saving me some hair :-)
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080827/0f060437/attachment.sig 


More information about the Plasma-devel mailing list