denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Gkt3 draw.c


From: Richard Shann
Subject: Re: [Denemo-devel] Gkt3 draw.c
Date: Fri, 11 Nov 2011 09:33:02 +0000

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 <address@hidden> 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
> >address@hidden
> >https://lists.gnu.org/mailman/listinfo/denemo-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]