Re: [gtk-list] Re: coordinating idle events and redraws



Owen Taylor <owt1@cornell.edu> writes:
> Keeping a single prioritized idle queue seems better to me.
> It is more flexible, about as easy to implement, and I tend
> to think of the main loop as providing generic event loop
> functionality in a way that is somewhat separate from the
> rest of GTK. So I'd rather put in a general facility than
> a special case for the drawing/resizing code.

Agreed.  That's cleaner.

> It's probably easier for me to do it. I'm going to change things
> around with gtk_idle_add anyways as part of the _interp() changes,
> and I'm already pretty familiar with that part of the code.
> 
> Assuming that it goes as easily as I think, I'll do it this
> evening.

Cool.  Btw, I've just hacked priorities into my copy and it solves
my little redraw/idle problem.  I don't have general integer 
priorities though - just a enum with low, default, and high.  It
seemed more mnemonic than integers.  But either way is fine with me.

-Marc



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