Re: Adding widgets to a container at a specific index



nicholas allen <nicholas allen ireland sun com> writes:

Hi,

Does anyone know how to add widgets to a container at a specific index
(ie insert widgets so that they can appear under or over other
widgets). I need to do this for a Java peer set I'm working on. Java
wants to add the widgets under each other (ie widgets added later
appear below other widgets - I find this weird!) but Gtk works the
other way round. So I need to add widgets at the start of the widget
list and not the end.

Thanks for any help....

Not currently possible, and not scheduled for 2.0. It's in
Bugzilla as:

 http://bugzilla.gnome.org/show_bug.cgi?id=7959

What I'd do is probably write a custom container - cut and paste the
GtkFixed code - and add the facility yourself. By reversing the order
of the forall() callback and using gdk_window_raise() if you need to
control stacking order for window widgets later on, you should be able
to get the effect you want.

Regards,
                                        Owen




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