Review Request 125562: Default for look and feel of applets, take 2

Marco Martin notmart at gmail.com
Mon Oct 12 15:18:08 UTC 2015



On Oct. 12, 2015, 1:36 p.m., Marco Martin wrote:
> > could we use if (id==0) rather than introducing new signals in p-f?
> 
> Marco Martin wrote:
>     looking at it, (and trying a patch that ended up very ugly and not really working) at the moment on plasma5 layout templates can only work for panels, as layout templates for desktops at the moment can only create new activities but there isn't any api in the desktop scripting to just create a Desktop containment.
>     and probably there shouldn't be, as creating a new Desktop containment via scripting would just create an "orphaned" containment that wouldn't really do anything and not be anywhere, except perhaps this kind of script, but just broken in setup scripts and in the interactive console.
>     So I think all considered, I prefer keeping layout templates just limited to their current use that is pre-populated panels that appear in the create panel context menu.
>     For desktop, layout templates would go back making sense if and only if the activity manager would again have a "create new activity of type..." option when creating activities as there was in KDE4, but not sure about it.
>     Otherwise just for default containments configs, I would just stick to the current patch form

about id == 0  uhmm, at that point the containment is an existing one already so id would never be 0 in both cases..


- Marco


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125562/#review86554
-----------------------------------------------------------


On Oct. 9, 2015, 4:29 p.m., Marco Martin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125562/
> -----------------------------------------------------------
> 
> (Updated Oct. 9, 2015, 4:29 p.m.)
> 
> 
> Review request for Plasma and Eike Hein.
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> (draft) mutually exclusive with https://git.reviewboard.kde.org/r/125558/
> a bit more flexible
> different approach: execute a script from the look and feel package when an applet is added, adding to the script environment "applet" that wraps the currently added applet and "containment" that wraps its containment.
> from there the javascript part can do anything it can do in the startup script as well.
> Still missing, something similar will have to be executed when a new containment is added as well.
> 
> 
> Diffs
> -----
> 
>   shell/packageplugins/lookandfeel/lookandfeel.cpp a6cef04 
>   shell/shellcorona.h 0e6fe04 
>   shell/shellcorona.cpp 37d0534 
> 
> Diff: https://git.reviewboard.kde.org/r/125562/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Marco Martin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20151012/4c7c18d4/attachment-0001.html>


More information about the Plasma-devel mailing list