Cannot remove scripted plasmoid

Petri Damstén petri.damsten at gmail.com
Fri Jun 19 10:01:25 CEST 2009


On Thursday 18 June 2009 22:23:58 Chani wrote:
> On June 18, 2009 09:15:27 Petri Damstén wrote:
> > On Saturday 13 June 2009 10:10:44 Petri Damstén wrote:
> > > > doh! that was in the wrong init() method (the private vs the public
> > > > one) .. it's fixed now :)
> > >
> > > I think that X-Plasma-DefaultSize code should be still called from
> > > private init, since public init is too late for that?
>
> yes.
>
> > I was a way for a while but now I had finally time to test this. Seems
> > that now plasma always resizes scripted applets to default size. Could
> > X-Plasma- DefaultSize code work for C++ (like in attached patch) or
> > should it be in the script specific section of the code in the
> > AppletPrivate::init?
> >
> > Petri
>
> c++ plasmoids have been setting default size in their constructors, so it's
> probably best not to override that :)

AppletPrivate::init is called from Plasma::Applet constructor so it gets run 
before actual Applet constructor where resize usually is? I was thinking that 
it could be used for C++ too for consistency but would not break existing 
applets.

Petri
-------------- 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://mail.kde.org/pipermail/plasma-devel/attachments/20090619/fe2b7a1d/attachment.sig 


More information about the Plasma-devel mailing list