[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request: add Applet::init() in Containment::init()
From: "Aaron Seigo" <aseigo () kde ! org>
Date: 2010-02-23 21:34:20
Message-ID: 20100223213420.22395.28190 () localhost
[Download RAW message or body]
> On 2010-02-23 15:12:20, Aaron Seigo wrote:
> > /trunk/KDE/kdelibs/plasma/containment.cpp, lines 150-153
> > <http://reviewboard.kde.org/r/3041/diff/1/?file=19854#file19854line150>
> >
> > Applet::init() should definitely be called in the if (!isContainment()) block, \
> > but Applet::init() does various things that aren't appropriate for Containment.
> > the only useful part in Applet::init() would be the package object creation. i'd \
> > suggest taking that part out of Applet::init(), moving it to a method in \
> > AppletPrivate and then calling it from both Applet::init() as well as \
> > Containment::init().
>
> Richard Dale wrote:
> I think the above suggestion makes sense, but looking at the code in Applet::init() \
> it doesn't appear to do anything other than what we need:
> void Applet::init()
> {
> if (d->script) {
> d->setupScriptSupport();
>
> if (!d->script->init() && !d->failed) {
> setFailedToLaunch(true, i18n("Script initialization failed"));
> }
> }
> }
>
> So to me it looks like all of Applet::init() should be moved to an AppletPrivate \
> method.
erf; sorry, i looked at the wrong init() method. i looked at AppletPrivate::init() \
... :/ sorry. so, yes... this patch as provided is correct.
- Aaron
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3041/#review4252
-----------------------------------------------------------
On 2010-02-23 12:46:46, Vincenzo Di Massa wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/3041/
> -----------------------------------------------------------
>
> (Updated 2010-02-23 12:46:46)
>
>
> Review request for Plasma.
>
>
> Summary
> -------
>
> Can this be harmful? I think this could be useful in order to allow scripted \
> containments. But I must confess I don't understand how the whole thing works, so \
> maybe there is a reason why this one liner is not already in plasma :-)
>
> This addresses bug 227767.
> https://bugs.kde.org/show_bug.cgi?id=227767
>
>
> Diffs
> -----
>
> /trunk/KDE/kdelibs/plasma/containment.cpp 1092102
>
> Diff: http://reviewboard.kde.org/r/3041/diff
>
>
> Testing
> -------
>
> I'm using this patch on my work machine... I can not spot any problem and I was \
> able to make scripted containments sort of work.
>
> Thanks,
>
> Vincenzo
>
>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic