Re: gtk rendering order



With the double buffering turned on, any drawing is
pushed onto a stack before the updated window is made
visible.

Is it possible to reverse the stack just before the
flush in order to boost the performance?

Kev

--- John Cupitt <jcupitt gmail com> wrote:

On 10/5/05, Kevin Brooks <kb_list yahoo com> wrote:
I don't know how to reverse the rendering order
though.

I implement a 'pop - to - front' effect with layered
widgets with

  g_object_ref( thing );
  gtk_container_remove( container, thing );
  gtk_container_add( container, thing );
  g_object_unref( thing );

ie. you remove and re-add the child to get it to the
top. The _ref()
stops the child being destroyed when it is removed.

You could use this to reverse the order of the child
widgets, but I
guess it would probably flicker a lot.

J




                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



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