Re: gtk rendering order



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



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