[mythtv] API suggestions
Henrik (Mauritz) Johnson
hpj at underscore.se
Fri Feb 6 12:21:07 EST 2004
Renchi Raju wrote:
>On Fri, 6 Feb 2004, Henrik (Mauritz) Johnson wrote:
>>2. Would anyone have any problems with me adding a few methods for
>>modifying a few attributes of UI elements. The one I ran into now was
>>changing the pixmap of a textbutton while running, but I'm sure there
>send a patch.
Ok, sure. Just that I sent a patch a few days ago and got no response at
all on it. But I'll send it in.
>>3. I have a fairly complex UI XML file (Around 40 elements) and it takes
>>20 seconds to render... Should this really be the case? it seems really
>not sure what you are doing... but some hints:
>1) make sure you are not repainting more times than needed. one paint
>per paintevent is usually whats needed
>2) use update instead of repaint - repaint forces an immediate paint.
>update stacks up multiple paintevents and cuts them down to a single
>3) paint only whats necessary. use containers (ui theme) and update only
>those containers which need to be updated
Ok, I just construct a themed dialog from the XML and it takes around 20
seconds from the constructor returns to the dialog shows up. I don't do
anything with it, no repainting at all.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mythtv-dev