[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    [Panel-devel] a few new rules for applets
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2007-11-24 16:01:42
Message-ID: 200711240901.42791.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


hi...

there are a few things applets need to abide by:

- never do anything that assumes the applet is set up in the plasma 
environment in the constructor. all of those things should go into init(). 
this includes, in particular, reading configuration values and accessing 
either the containment or the corona.

- never re-implement contentSizeHint unless there is a really, really good 
reason to do so. because unless the applet is extra careful, it will break 
free-resizing. instead, set a default size in the constructor or in init() 
and the adjust contents to the size of the applet.

i've made these changes for the applets in kdebase/workspace/plasma/applets, i 
have yet to go over the ones in extragear.

-- 
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 Trolltech

[Attachment #5 (application/pgp-signature)]

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic