Thanks. That was a big tip. I found that gtk3 does not send an "event_event" 
but a "draw" signal. 

Jeremiah

Sent from my Samsung smartphone on AT&T

Richard Shann <[email protected]> wrote:

>On Thu, 2011-11-10 at 16:10 -0600, Jeremiah Benham wrote:
>> Oh. This does nothing! I will see what I can do.
>This bit at the end of draw.c is graying out the background when the
>drawing area does not have the focus:
>
>if (gtk_widget_has_focus (Denemo.scorearea)) {
>    cairo_set_source_rgb (cr, ((0xFF0000&Denemo.color)>>16)/255.0,
>((0xFF00&Denemo.color)>>8)/255.0, ((0xFF&Denemo.color))/255.0);
>  } else {
>   cairo_set_source_rgb (cr, 0.9, 0.9, 0.9);
>  }
>
>So this should be easily visible (e.g. every time you use a menu).
>It seems strange that the drawing area should be painted white and then
>not change. Perhaps the draw is only being called once (there is some
>turning off of the draw signal while files are loaded ....)
>
>Richard
>
>
>> 
>> Jeremiah
>> 
>> Sent from my Samsung smartphone on AT&T
>> 
>> Richard Shann <[email protected]> wrote:
>> 
>> >On Thu, 2011-11-10 at 22:48 +0000, Richard Shann wrote:
>> >> hmm, well, specifically there is a command d-BackgroundColor or
>> >> something like that which could be invoked from the scheme window to
>> >> see
>> >> if the draw routine is firing and what it is doing. 
>> >
>> >(d-SetBackground 0)
>> >
>> >and then (d-RefreshDisplay) should make everything black.
>> >
>> >Richard
>> >
>> >
>> >
>> >_______________________________________________
>> >Denemo-devel mailing list
>> >[email protected]
>> >https://lists.gnu.org/mailman/listinfo/denemo-devel
>
>
_______________________________________________
Denemo-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/denemo-devel

Reply via email to