indeed, no more flickering of the CL on update.. AT ALL! :D youpiii :) but we still got the top part flickering.. the reason is simple :
        #Clear the children of top to avoid memory leaks:
        foreach child [winfo children $pgBuddyTop] {
                destroy $child
        }
        pack $pgBuddyTop -expand false -fill x -before $pgBuddy


that's in cmsn_draw_online... so it means the top part gets recreated and repacked, which obviously makes it flicker.. I suggest refactoring the code so that it's updated instead of recreated...
Tom, you want to make that into a single widget? :P just kidding!
main things to modify :
1 - remove destroy things
2 -keep pack (in case we switch from cmsn_draw_offline!)
3 - instead of creating a label/canvas (in clickableDisplayPIcture proc) depending on showdisplaycontactlist skin var, keep it into a one canvas for both, addd an option to clickableDisplayPicture, if skin var is enabled, we draw the frame around the DP, if not, we draw the $image_type (status buddy icon) instead of DP and without any frame! (delete preivous canvas content!) 4 - don't recreate the colobar label, just call ::skin::getColorbar and it will automatically refresh itself (always using the same name for the image) 5 - do similar changes everywhere, like in clear_disp or other proc like it... 6 - create all text/canvas/label widgets in the same place pgBuddyTop is created the first time!

is that it ?
I'm sure someone will manage this code refactoring!
Thanks!

KaKaRoTo



On Thu, 02 Feb 2006 09:45:10 -0500, Arieh Schneier <[EMAIL PROTECTED]> wrote:

> I have a small problem with your last changes Youness...I use the
> pop3 plugin and I don't see the text for the pop3 plugin anymore,
> just the top of an icon (seems hidden)...Do you have the same problem?

Fixed in cvs.


PS Youness some great work there, lots of small changes, but such a big
difference :). No more lag on redisplay of cl :), also I was finding the
amsn became unusable during login and its 'better' now. Still can't use it when the connection is made and it is downloading the cl (Im guessing that
is whats happening) too much cpu usage.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel



--
KaKaRoTo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to