Re: Simple draw question

2007-05-06 Thread Cédric Lucantis
You should never draw anything in an enter/leave callback, but only in an expose event. Also note that creating/destroying a GC each time you draw it is very slow, so you should do something like this instead: Ok, I have questions here and they are because I really want to know why and

Re: Simple draw question

2007-05-05 Thread Cédric Lucantis
Le samedi 5 mai 2007 00:48, Kevin DeKorte a écrit : Hi, I have a situation where I need to highlight an eventbox when a user enters it and unhighlight it when the users leaves. I'm using this code but the color I'm drawing in the leave_button_callback is always wrong and varies from run to

Re: Simple draw question

2007-05-05 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cédric Lucantis wrote: Le samedi 5 mai 2007 00:48, Kevin DeKorte a écrit : You should never draw anything in an enter/leave callback, but only in an expose event. Also note that creating/destroying a GC each time you draw it is very slow, so

Re: Simple draw question

2007-05-05 Thread Chris Sparks
I have been able, using GDK, to draw while entering and leaving. One example could be in trying to create a highlight effect as you enter a window. Chris Kevin DeKorte wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cédric Lucantis wrote: Le samedi 5 mai 2007 00:48, Kevin DeKorte

Simple draw question

2007-05-04 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a situation where I need to highlight an eventbox when a user enters it and unhighlight it when the users leaves. I'm using this code but the color I'm drawing in the leave_button_callback is always wrong and varies from run to run with